This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: no output from -MF
- To: Harri Porten <harri at trolltech dot com>
- Subject: Re: no output from -MF
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Tue, 9 Jan 2001 18:31:38 +0000
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <3A5B471C.6BB92CF3@trolltech.com>
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.