public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/39533]  New: -MM may list a header file twice
@ 2009-03-23 21:37 hjl dot tools at gmail dot com
  2009-03-23 21:40 ` [Bug preprocessor/39533] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-23 21:37 UTC (permalink / raw)
  To: gcc-bugs

"gcc -MM" may list a header file twice.


-- 
           Summary: -MM may list a header file twice
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
@ 2009-03-23 21:40 ` pinskia at gcc dot gnu dot org
  2009-03-23 21:44 ` hjl dot tools at gmail dot com
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-03-23 21:40 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
  2009-03-23 21:40 ` [Bug preprocessor/39533] " pinskia at gcc dot gnu dot org
@ 2009-03-23 21:44 ` hjl dot tools at gmail dot com
  2009-03-24  1:48 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-23 21:44 UTC (permalink / raw)
  To: gcc-bugs



------- 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=17527&action=view)
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]$ 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
  2009-03-23 21:40 ` [Bug preprocessor/39533] " pinskia at gcc dot gnu dot org
  2009-03-23 21:44 ` hjl dot tools at gmail dot com
@ 2009-03-24  1:48 ` pinskia at gcc dot gnu dot org
  2009-03-24  1:50 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-03-24  1:48 UTC (permalink / raw)
  To: gcc-bugs



------- 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
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (2 preceding siblings ...)
  2009-03-24  1:48 ` pinskia at gcc dot gnu dot org
@ 2009-03-24  1:50 ` pinskia at gcc dot gnu dot org
  2009-03-24 17:26 ` hjl dot tools at gmail dot com
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-03-24  1:50 UTC (permalink / raw)
  To: gcc-bugs



------- 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 gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |trivial


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (4 preceding siblings ...)
  2009-03-24 17:26 ` hjl dot tools at gmail dot com
@ 2009-03-24 17:26 ` hjl dot tools at gmail dot com
  2009-03-24 17:44 ` hjl dot tools at gmail dot com
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-24 17:26 UTC (permalink / raw)
  To: gcc-bugs



------- 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
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2009-
                   |                            |03/msg01133.html


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (3 preceding siblings ...)
  2009-03-24  1:50 ` pinskia at gcc dot gnu dot org
@ 2009-03-24 17:26 ` hjl dot tools at gmail dot com
  2009-03-24 17:26 ` hjl dot tools at gmail dot com
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-24 17:26 UTC (permalink / raw)
  To: gcc-bugs



------- 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=17536&action=view)
A updated testcase

Here is the correct testcase.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17527|0                           |1
        is obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (5 preceding siblings ...)
  2009-03-24 17:26 ` hjl dot tools at gmail dot com
@ 2009-03-24 17:44 ` hjl dot tools at gmail dot com
  2009-03-24 17:49 ` rwild at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-24 17:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hjl dot tools at gmail dot com  2009-03-24 17:43 -------
Created an attachment (id=17537)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17537&action=view)
A real tescase

This should be correct.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17536|0                           |1
        is obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (6 preceding siblings ...)
  2009-03-24 17:44 ` hjl dot tools at gmail dot com
@ 2009-03-24 17:49 ` rwild at gcc dot gnu dot org
  2009-03-30 21:23 ` tromey at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: rwild at gcc dot gnu dot org @ 2009-03-24 17:49 UTC (permalink / raw)
  To: gcc-bugs



------- 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
----------------------------------------------------------------------------
                 CC|                            |rwild at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (7 preceding siblings ...)
  2009-03-24 17:49 ` rwild at gcc dot gnu dot org
@ 2009-03-30 21:23 ` tromey at gcc dot gnu dot org
  2009-03-30 21:27 ` hjl dot tools at gmail dot com
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-03-30 21:23 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (8 preceding siblings ...)
  2009-03-30 21:23 ` tromey at gcc dot gnu dot org
@ 2009-03-30 21:27 ` hjl dot tools at gmail dot com
  2009-03-30 21:50 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-30 21:27 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (9 preceding siblings ...)
  2009-03-30 21:27 ` hjl dot tools at gmail dot com
@ 2009-03-30 21:50 ` tromey at gcc dot gnu dot org
  2009-07-15  7:30 ` [Bug preprocessor/39533] [4.4/4.5 Regression] " steven at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-03-30 21:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from tromey at gcc dot gnu dot org  2009-03-30 21:50 -------
I am looking at it right now.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] [4.4/4.5 Regression] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (10 preceding siblings ...)
  2009-03-30 21:50 ` tromey at gcc dot gnu dot org
@ 2009-07-15  7:30 ` steven at gcc dot gnu dot org
  2009-07-15  7:31 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-07-15  7:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] [4.4/4.5 Regression] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (11 preceding siblings ...)
  2009-07-15  7:30 ` [Bug preprocessor/39533] [4.4/4.5 Regression] " steven at gcc dot gnu dot org
@ 2009-07-15  7:31 ` steven at gcc dot gnu dot org
  2009-07-29 22:31 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-07-15  7:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from steven at gcc dot gnu dot org  2009-07-15 07:30 -------
Tom, ping.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] [4.4/4.5 Regression] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (12 preceding siblings ...)
  2009-07-15  7:31 ` steven at gcc dot gnu dot org
@ 2009-07-29 22:31 ` jsm28 at gcc dot gnu dot org
  2009-10-15 12:55 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-07-29 22:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] [4.4/4.5 Regression] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (13 preceding siblings ...)
  2009-07-29 22:31 ` jsm28 at gcc dot gnu dot org
@ 2009-10-15 12:55 ` jakub at gcc dot gnu dot org
  2010-01-21 13:18 ` jakub at gcc dot gnu dot org
  2010-04-30  9:00 ` [Bug preprocessor/39533] [4.4/4.5/4.6 " jakub at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-10-15 12:55 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.2                       |4.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] [4.4/4.5 Regression] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (14 preceding siblings ...)
  2009-10-15 12:55 ` jakub at gcc dot gnu dot org
@ 2010-01-21 13:18 ` jakub at gcc dot gnu dot org
  2010-04-30  9:00 ` [Bug preprocessor/39533] [4.4/4.5/4.6 " jakub at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-21 13:18 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.3                       |4.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug preprocessor/39533] [4.4/4.5/4.6 Regression] -MM may list a header file twice
  2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
                   ` (15 preceding siblings ...)
  2010-01-21 13:18 ` jakub at gcc dot gnu dot org
@ 2010-04-30  9:00 ` jakub at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-04-30  9:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.4                       |4.4.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39533


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-04-30  9:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-23 21:37 [Bug preprocessor/39533] New: -MM may list a header file twice hjl dot tools at gmail dot com
2009-03-23 21:40 ` [Bug preprocessor/39533] " pinskia at gcc dot gnu dot org
2009-03-23 21:44 ` hjl dot tools at gmail dot com
2009-03-24  1:48 ` pinskia at gcc dot gnu dot org
2009-03-24  1:50 ` pinskia at gcc dot gnu dot org
2009-03-24 17:26 ` hjl dot tools at gmail dot com
2009-03-24 17:26 ` hjl dot tools at gmail dot com
2009-03-24 17:44 ` hjl dot tools at gmail dot com
2009-03-24 17:49 ` rwild at gcc dot gnu dot org
2009-03-30 21:23 ` tromey at gcc dot gnu dot org
2009-03-30 21:27 ` hjl dot tools at gmail dot com
2009-03-30 21:50 ` tromey at gcc dot gnu dot org
2009-07-15  7:30 ` [Bug preprocessor/39533] [4.4/4.5 Regression] " steven at gcc dot gnu dot org
2009-07-15  7:31 ` steven at gcc dot gnu dot org
2009-07-29 22:31 ` jsm28 at gcc dot gnu dot org
2009-10-15 12:55 ` jakub at gcc dot gnu dot org
2010-01-21 13:18 ` jakub at gcc dot gnu dot org
2010-04-30  9:00 ` [Bug preprocessor/39533] [4.4/4.5/4.6 " jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).