This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/39372] [4.3/4.4 Regression] Missing DW_AT_location for constructor static variable
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2009 11:14:17 -0000
- Subject: [Bug debug/39372] [4.3/4.4 Regression] Missing DW_AT_location for constructor static variable
- References: <bug-39372-12292@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2009-03-05 11:14 -------
Ah, the reason why it didn't fail with 4.1.x and older 4.2.x/4.3.x is
PR27574. Before that change set_decl_abstract_flags saw error_mark_node
DECL_INITIAL and so didn't dive into the blocks, now it does.
Guess the right fix will be not mark TREE_STATIC VAR_DECLs in
set_block_abstract_flags as abstract.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39372