[Bug preprocessor/39533] -MM may list a header file twice

2009-03-30 Thread tromey at gcc dot gnu dot org
--- Comment #9 from tromey at gcc dot gnu dot org 2009-03-30 21:23 --- It is not really a bug, but it is ugly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-30 Thread hjl dot tools at gmail dot com
--- Comment #10 from hjl dot tools at gmail dot com 2009-03-30 21:26 --- (In reply to comment #9) It is not really a bug, but it is ugly. Is there anything wrong with my patch? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-03-24 17:26 --- Created an attachment (id=17536) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17536action=view) A updated testcase Here is the correct testcase. -- hjl dot tools at gmail dot com changed: What

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2009-03-24 17:26 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01133.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread rwild at gcc dot gnu dot org
--- Comment #8 from rwild at gcc dot gnu dot org 2009-03-24 17:49 --- Why is this a bug? I'm really curious to know; the manual doesn't document that -MM output is uniquified. -- rwild at gcc dot gnu dot org changed: What|Removed |Added

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-03-23 21:39 --- Example? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-23 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-03-23 21:44 --- Created an attachment (id=17527) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17527action=view) A testcase # gcc -MM x.c -Iinclude x.o: x.c foo.h include/ansidecl.h include/libiberty.h

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-03-24 01:48 --- This testcase is not complete, it does not include foo.h. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-03-24 01:50 --- 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 -- pinskia at