[Bug preprocessor/35697] -MF should create dependency file atomically

Ralf dot Wildenhues at gmx dot de gcc-bugzilla@gcc.gnu.org
Tue Mar 25 21:01:00 GMT 2008



------- Comment #2 from Ralf dot Wildenhues at gmx dot de  2008-03-25 21:00 -------
Subject: Re:  -MF should create dependency file
        atomically

* pinskia at gcc dot gnu dot org wrote on Tue, Mar 25, 2008 at 09:53:52PM CET:
> Actually the driver should cleanup the file if cc1 was
> interrupted/errors out like it does with all the rest of the files.

But that still doesn't help with SIGQUIT or KILL.  Asking too much?

Also, I suppose there can be weird setups where more than one instance
of a parallel make read a common subset of makefile snippets, at
different times.  Haven't seen them, but unless the depfile is *really*
created atomically, I wouldn't advise build systems to rely on it being
usable without a temp file.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35697



More information about the Gcc-bugs mailing list