This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Bug in specs processing
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Mark Mitchell" <mark at codesourcery dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Tue, 22 Jul 2008 16:56:53 -0700
- Subject: Re: RFC: Bug in specs processing
- References: <488672EF.8030501@codesourcery.com>
On Tue, Jul 22, 2008 at 4:53 PM, Mark Mitchell <mark@codesourcery.com> wrote:
> I noticed today that:
>
> gcc -c -o hw.o hw.c
>
> removes hw.o if failure occurs during the compilation, but:
>
> gcc -c -ohw.o hw.c
>
> does not.
>
> The reason turns out to be that, in the latter case, we record the name
> "-ohw.o" as a temporary file, rather than "hw.o".
This is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11810 .
There was a patch posted here:
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00784.html
It was reviewed here:
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01432.html
Thanks,
Andrew Pinski