This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: no output from -MF


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]