preprocessor/6310: gcc -MF vs. depcomp
corsepiu@faw.uni-ulm.de
corsepiu@faw.uni-ulm.de
Mon Apr 15 09:57:00 GMT 2002
>Number: 6310
>Category: preprocessor
>Synopsis: gcc -MF vs. depcomp
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 15 09:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Ralf Corsepius
>Release: gcc-3.0.5 (20020410)
>Organization:
>Environment:
Linux i386/ELF
>Description:
automake > 1.4's depcomp uses
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
to compute dependencies.
This basically causes it to invoke gcc this way:
gcc -g -O2 -c hello.c -MT hello.o -MD -MP -MF .deps/hello.TPo
Which now causes warning of this kind:
gcc: unrecognized option `-MF'
This has worked for gcc-3.0.x up to 3.0.4, but has stopped working with post-3.0.4 gcc's from the gcc-3.0-branch.
AFAI understand, probably this patch below is the origin of this problem:
2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
preprocessor/3951
* gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
>How-To-Repeat:
Compile an arbitrary C-sources with gcc-3.0.5 from CVS/gcc-3-0-branch depcomp-style:
Eg.:
gcc -g -O2 -c hello.c -MT hello.o -MD -MP -MF deps/hello.TPo
gcc: unrecognized option `-MF'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list