This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/14079] [3.3/3.4/3.5 Regression] wrong debug info for extern boolean variable in debug mode
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 02:31:40 -0000
- Subject: [Bug debug/14079] [3.3/3.4/3.5 Regression] wrong debug info for extern boolean variable in debug mode
- References: <20040209100109.14079.konstantin@mysql.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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