This is the mail archive of the gcc@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]
Other format: [Raw text]

-MM -MG, <foo.h>, and 3.4.0


$ 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


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