This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/35697] -MF should create dependency file atomically
- From: "Ralf dot Wildenhues at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2008 21:00:43 -0000
- Subject: [Bug preprocessor/35697] -MF should create dependency file atomically
- References: <bug-35697-15771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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