This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
"gcc -MM" errorously shows headers included by -imacros
- To: gcc-bugs at gcc dot gnu dot org
- Subject: "gcc -MM" errorously shows headers included by -imacros
- From: Andris Pavenis <andris at stargate dot astr dot lu dot lv>
- Date: Tue, 18 Jan 2000 10:16:08 +0200
Hi!
gcc-2.95.2 (and also current development version) errorously (I think so)
outputs header names included with CPP command line option -imacros
as dependencies when command line option -MM is specified. Initially this
problem were found for DJGPP but it's present also in Linux
For example:
xgcc -v -B./ -MM -Wp,-imacros,/usr/include/zlib.h pself.c
gave (I simply took one not related header file):
-------------------------------------------------------
Reading specs from ./specs
gcc version 2.96 20000117 (experimental)
./cpp -lang-c -v -iprefix ./../lib/gcc-lib/i586-pc-linux-gnu/2.96/ -isystem ./include -MM -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros /usr/include/zlib.h pself.c
GNU CPP version 2.96 20000117 (experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
include
/usr/local/include
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/../../../../include/g++-3
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/../../../../i586-pc-linux-gnu/include
End of omitted list.
pself.o: pself.c /usr/include/zlib.h /usr/include/zconf.h
-------------------------------------------------------
According docomentation only files included with
#include "filename"
should be listed.
There is still question whether such file should be listed with command line
option -M
Andris