public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined
@ 2004-02-07 19:13 fjahanian at apple dot com
  2004-02-07 19:17 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fjahanian at apple dot com @ 2004-02-07 19:13 UTC (permalink / raw)
  To: gcc-bugs

This bug was also uncovered building gap of the spec benchmark with tree-ssa. In the
following trivial test case, tree-ssa gcc produces two definition of the locally declaraed extern
which is later defined. Compile with -O2.

/* Bug in tree-ssa, tested on Apple, darwin, ppc. Compile with O2:

mygcct5o -O2 prxxx.c
/var/tmp//ccZZXOy5.s:8:FATAL:Symbol _CPN already defined.

*/


void collect()
{
    extern long         CPN;
}
long         CPN=1;

-- 
           Summary: tree-ssa generates duplicate definision of invisible
                    sybmbol forward defined
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fjahanian at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.0.0
GCC target triplet: powerpc-apple-darwin7.0.0


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definision of invisible sybmbol forward defined
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
@ 2004-02-07 19:17 ` pinskia at gcc dot gnu dot org
  2004-02-07 19:23 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-07 19:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-07 19:17 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org, hubicka at gcc dot gnu
                   |                            |dot org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
          Component|c                           |optimization
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |tree-ssa
      Known to work|                            |3.5.0
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-07 19:17:34
               date|                            |
            Summary|tree-ssa generates duplicate|[tree-ssa] [unit-at-a-time]
                   |definision of invisible     |generates duplicate
                   |sybmbol forward defined     |definision of invisible
                   |                            |sybmbol forward defined
   Target Milestone|---                         |tree-ssa


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definision of invisible sybmbol forward defined
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
  2004-02-07 19:17 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] " pinskia at gcc dot gnu dot org
@ 2004-02-07 19:23 ` pinskia at gcc dot gnu dot org
  2004-02-09 22:30 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition " fjahanian at apple dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-07 19:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-07 19:23 -------
Okay some analysis of the bug.  When in not unit-at-a-time mode, the symbol CPN is not put in the 
function scope while with it is.

-- 


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible sybmbol forward defined
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
  2004-02-07 19:17 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] " pinskia at gcc dot gnu dot org
  2004-02-07 19:23 ` pinskia at gcc dot gnu dot org
@ 2004-02-09 22:30 ` fjahanian at apple dot com
  2004-03-02 18:31 ` dnovillo at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fjahanian at apple dot com @ 2004-02-09 22:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |zack at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible sybmbol forward defined
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
                   ` (2 preceding siblings ...)
  2004-02-09 22:30 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition " fjahanian at apple dot com
@ 2004-03-02 18:31 ` dnovillo at gcc dot gnu dot org
  2004-03-10 16:54 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2004-03-02 18:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dnovillo at gcc dot gnu dot org  2004-03-02 18:31 -------

I've looked at it briefly.  Found that merge_decls was doing something odd, but
Zack mentioned on IRC that the fix implies changing a few data structures around.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dnovillo at gcc dot gnu dot
                   |                            |org


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
                   ` (3 preceding siblings ...)
  2004-03-02 18:31 ` dnovillo at gcc dot gnu dot org
@ 2004-03-10 16:54 ` pinskia at gcc dot gnu dot org
  2004-03-10 16:55 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-10 16:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-10 16:54 -------
*** Bug 14036 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
                   ` (4 preceding siblings ...)
  2004-03-10 16:54 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared pinskia at gcc dot gnu dot org
@ 2004-03-10 16:55 ` pinskia at gcc dot gnu dot org
  2004-03-16 19:10 ` pinskia at gcc dot gnu dot org
  2004-03-27 20:34 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-10 16:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-10 16:55 -------
The problem is that when converting from generic to gimple, the variable goes from 
extern to static for some reason.

-- 


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
                   ` (5 preceding siblings ...)
  2004-03-10 16:55 ` pinskia at gcc dot gnu dot org
@ 2004-03-16 19:10 ` pinskia at gcc dot gnu dot org
  2004-03-27 20:34 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-16 19:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared
  2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
                   ` (6 preceding siblings ...)
  2004-03-16 19:10 ` pinskia at gcc dot gnu dot org
@ 2004-03-27 20:34 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-27 20:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-27 20:34 -------
This was fixed by Zack's rewrite of c-decl.c so closing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-03-27 20:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-07 19:13 [Bug c/14065] New: tree-ssa generates duplicate definision of invisible sybmbol forward defined fjahanian at apple dot com
2004-02-07 19:17 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] " pinskia at gcc dot gnu dot org
2004-02-07 19:23 ` pinskia at gcc dot gnu dot org
2004-02-09 22:30 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition " fjahanian at apple dot com
2004-03-02 18:31 ` dnovillo at gcc dot gnu dot org
2004-03-10 16:54 ` [Bug optimization/14065] [tree-ssa] [unit-at-a-time] generates duplicate definition of invisible symbol forward declared pinskia at gcc dot gnu dot org
2004-03-10 16:55 ` pinskia at gcc dot gnu dot org
2004-03-16 19:10 ` pinskia at gcc dot gnu dot org
2004-03-27 20:34 ` pinskia 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).