User account creation filtered due to spam.
"gcc -MM" may list a header file twice.
Example?
Created attachment 17527 [details] A testcase # gcc -MM x.c -Iinclude x.o: x.c foo.h include/ansidecl.h include/libiberty.h include/ansidecl.h include/ansidecl.h is listed twice. Icc 11.1 generates: [hjl@gnu-6 dep-1]$ /opt/intel/cce/11.1/bin/icc -MM x.c -Iinclude x.o: x.c foo.h include/ansidecl.h include/libiberty.h [hjl@gnu-6 dep-1]$
This testcase is not complete, it does not include foo.h.
If I do cat > foo.h << EOF #include <ansidecl.h> EOF I get the duplicated include file but I don;t think it matters as it is included twice, how does the cpp know they are really the same include file
Created attachment 17536 [details] A updated testcase Here is the correct testcase.
A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01133.html
Created attachment 17537 [details] A real tescase This should be correct.
Why is this a bug? I'm really curious to know; the manual doesn't document that -MM output is uniquified.
It is not really a bug, but it is ugly.
(In reply to comment #9) > It is not really a bug, but it is ugly. > Is there anything wrong with my patch?
I am looking at it right now.
Tom, ping.
4.4 branch is being closed, moving to 4.5.4 target.
GCC 4.6.4 has been released and the branch has been closed.
The 4.7 branch is being closed, moving target milestone to 4.8.4.
GCC 4.8.4 has been released.
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.
GCC 4.9.3 has been released.
GCC 4.9 branch is being closed