This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to -MD specs
- From: Jason Merrill <jason at redhat dot com>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Oct 2002 12:39:50 -0400
- Subject: Re: PATCH to -MD specs
- References: <wvlznuv6w2z.fsf@prospero.cambridge.redhat.com><20020906153458.GA32574@daikokuya.co.uk><wvllm6f6roy.fsf@prospero.cambridge.redhat.com><20021011120553.GA4412@daikokuya.co.uk>
On Fri, 11 Oct 2002 13:05:53 +0100, Neil Booth <neil@daikokuya.co.uk> wrote:
>> Another alternative would be to stop using %W for the .d files; deleting
>> them on failure is certainly wrong for *DEPENDENCIES*, and probably wrong
>> for the normal case, too; since we write out the file in a burst at the end
>> of compilation, interrupting compilation is unlikely to cause corrupted
>> output. Tweaks to mkdeps.c could make it even less likely; if we spit
>> everything out with a single write, there should be no chance of
>> corruption. What do you think?
>
> This seems to be simplest. Does this do it for you?
>
> PR preprocessor/7862
> PR preprocessor/8190
> * gcc.c (cpp_unique_options): Don't delete .d files.
> Remove stray whitespace.
Yes, that fixes the primary bug.
Jason