no output from -MF
Neil Booth
neil@daikokuya.demon.co.uk
Tue Jan 9 10:31:00 GMT 2001
Harri Porten wrote:-
> $ gcc -Wp,-MF,test.dep test.c // no output
> $ ls test.dep
> ls: test.dep: No such file or directory
>
> Using cc1 directly doesn't write to file either.
>
> $ cc1 -MF test.dep test.c
> $ ls test.dep
> ls: test.dep: No such file or directory
>
> A bug or wrong usage ?
They're wrong usage. -MF only tells CPP the output file, with my
latest patch it will complain you haven't told it what you want (this
requires you select either -M or -MM).
Your original problem was that CPP was ignoring -MD, which I've since
reverted.
Neil.
More information about the Gcc-bugs
mailing list