This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/14079] [3.3/3.4/3.5 Regression] wrong debug info for extern boolean variable in debug mode


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-03-02 02:31 -------
Matt, this is coming from your static_decls optimization.  The problem is that
the variable in question is not ending up on the static_decls list when it is
first declared "extern".  It looks like your change works by adding things to
static_decls in add_decl_to_level.  I think that either you need to add "extern"
variables as well, or you need to notice the definition in duplicate_decls and
go back and fix up the static_decls list.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |austern at apple dot com
         AssignedTo|unassigned at gcc dot gnu   |austern at apple dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]