gcc -MF doesn't work as expected

Zack Weinberg zackw@stanford.edu
Mon Apr 9 14:45:00 GMT 2001


On Sun, Apr 08, 2001 at 06:49:50PM +0100, Neil Booth wrote:
> 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.

When Tom Tromey and I designed this stuff, the intent was for -M -MF
not to inhibit compilation.  I was under the impression that it only
didn't work because it would involve way too much evil spec hackery,
and that this was considered a known bug to be dealt with when we
rewrote the driver.

zw



More information about the Gcc-bugs mailing list