This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-MM -MG, <foo.h>, and 3.4.0
- From: prj at po dot cwru dot edu (Paul Jarc)
- To: gcc at gcc dot gnu dot org
- Date: Wed, 28 Apr 2004 01:46:27 -0400
- Subject: -MM -MG, <foo.h>, and 3.4.0
- Organization: What did you have in mind? A short, blunt, human pyramid?
$ cat foo.c
#include <foo.h>
#include "bar.h"
$ gcc-3.2.3/bin/gcc -E -MM -MG foo.c 2> /dev/null
foo.o: foo.c bar.h
$ gcc-3.3.3/bin/gcc -E -MM -MG foo.c
foo.o: foo.c bar.h
$ gcc-3.4.0/bin/gcc -E -MM -MG foo.c
foo.o: foo.c foo.h bar.h
Is this intentional? It doesn't seem right - #include <foo.h> won't
look in the source directory during actual compilation, but -MM -MG
seems to indicate that it would. Is there any way to evoke the old
behavior?
paul