This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/8190: Failed compilation deletes -MD dependency file
- From: dje at watson dot ibm dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 10 Oct 2002 20:03:19 -0000
- Subject: preprocessor/8190: Failed compilation deletes -MD dependency file
- Reply-to: dje at watson dot ibm dot com
>Number: 8190
>Category: preprocessor
>Synopsis: Failed compilation deletes -MD dependency file
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 10 13:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: dje@watson.ibm.com
>Release: gcc version 3.2.1 20020920 (prerelease)
>Organization:
>Environment:
powerpc64-linux cross-compiler from AIX and x86-linux
>Description:
If one compiles a source file using the -MD option to create
a ".d" dependency file and specifies an output file, then if the source file contains an error, gcc-3.2 will delete the dependency .d file and leave the .o object file. Once the failure is corrected, Make may no longer have the complete dependency information to recognize that the object file needs to be rebuilt. Gcc-2.95 did not delete
the dependency file upon compilation failure.
>How-To-Repeat:
gcc -c -MD foo.C -o foo.o
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: