public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39236]  New: G++ sets TREE_STATIC and DECL_EXTERNAL on the same VAR_DECLs
@ 2009-02-18 21:08 jason at gcc dot gnu dot org
  2009-02-20 23:38 ` [Bug c++/39236] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-18 21:08 UTC (permalink / raw)
  To: gcc-bugs

G++ uses TREE_STATIC to mean "will be written out statically somewhere" rather
than "write out statically in this TU"; it should be set on VAR_DECLs that also
have DECL_EXTERNAL set.

Historically we've set DECL_EXTERNAL on anything that we weren't yet sure
whether or not we were going to write out in the current TU in order to support
assemble_external; now that we are always in unit-at-a-time mode that isn't
necessary anymore, so we can do away with the DECL_NOT_REALLY_EXTERN trickery.


-- 
           Summary: G++ sets TREE_STATIC and DECL_EXTERNAL on the same
                    VAR_DECLs
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


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


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

* [Bug c++/39236] G++ sets TREE_STATIC and DECL_EXTERNAL on the same VAR_DECLs
  2009-02-18 21:08 [Bug c++/39236] New: G++ sets TREE_STATIC and DECL_EXTERNAL on the same VAR_DECLs jason at gcc dot gnu dot org
@ 2009-02-20 23:38 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-20 23:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-02-20 23:38 -------
Confirmed, I had saw this originally when I was doing the store-ccp patch which
optimized static constant variables that just happened not to be initialized.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-02-20 23:38:09
               date|                            |


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


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

end of thread, other threads:[~2009-02-20 23:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-18 21:08 [Bug c++/39236] New: G++ sets TREE_STATIC and DECL_EXTERNAL on the same VAR_DECLs jason at gcc dot gnu dot org
2009-02-20 23:38 ` [Bug c++/39236] " 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).