On Tue, Jul 22, 2008 at 4:53 PM, Mark Mitchell <[EMAIL PROTECTED]> 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

Reply via email to