This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/11810] gcc -pipe -ox.o -c x.c writes erroneous x.o on compile error


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |debug
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-05 18:28:03
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-05 18:28 -------
I can confirm this on the mainline (20030805).
>From bug 10369 which is a dup:
I've tracked the problem: it is in gcc.c when executing the 'W' spec, it calls 
add_temporary_file_name or such (don't remember the exact function name, don't have the 
sources handy). The name that is passed to the function includes the -o switch (e.g. 
add_temporary_file_name ("-ofile.o")) and on failure the driver tries to delete the file with this 
name, and naturally fails.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]