gcc -MF doesn't work as expected
Peter Eisentraut
peter_e@gmx.net
Sun Apr 8 11:17:00 GMT 2001
Neil Booth writes:
> Peter Eisentraut wrote:-
>
> > While the documentation is ambiguous and underspecifying about the exact
> > semantics of -MF in absence of -MD, the fact that no object file is
> > created despite the presence of -c is a bug.
>
> Maybe I wasn't clear. The only purpose of -MF is to override the default
> name of the dependencies output file from what it otherwise would have
> been. It doesn't change semantics in any other way; -M and -MD retain
> their meanings and behaviour.
That would make sense, too, but in that case the use of -MF should be
prohibited (or ignored) in absence of -MD. The combination '-M -MF' is
non-sensical: It does not make sense to change the name of an output file
when no output file is to be written. (It makes even less sense to
actually write that output file.)
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
More information about the Gcc-bugs
mailing list