Mail Archives: djgpp-workers/1998/07/19/18:17:42
Andris Pavenis wrote:
>
> On Mon, 13 Jul 1998, Nate Eldredge wrote:
> > Then I think what we really need is for GCC to handle that more
> > gracefully. A cursory glance through the FSF GCC sources didn't show
> > anyplace where it might abort if the file didn't open, but it still
> > might be there, or only in the DJGPP sources (which I don't have
> > handy). This is where `abort' giving SIGABRT and a traceback would be
> > helpful...
> > --
> >
>
> It is in original sources of gcc:
> file: choose_temp.c
> procedure: char * choose_temp_base () (it is very end of this file)
>
> When gcc is not getting name of temporary file it's simply aborts.
> DJGPP port of gcc-2.8.1 now creates empty file when asked for name of
> temporary files to avoid conflicts between different DOS sessions
> running simultaneusly. Of course this fails if disk is read only.
What about doing at least a `perror' in that case? That will help
identify this problem.
> If we'll not create file then we'll not be able to safely run gcc from 2 DOS
> sessions simultaneusly. In such situation some other program more likely
> cpp will complain.
Right.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -