------- Comment #6 from jakub at gcc dot gnu dot org 2009-03-06 22:49 ------- Subject: Bug 39372
Author: jakub Date: Fri Mar 6 22:49:39 2009 New Revision: 144682 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144682 Log: PR debug/39372 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die. (gen_variable_die): Emit DW_AT_location on abstract static variable's DIE, don't emit it if abstract origin already has it. * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless. * g++.dg/debug/dwarf2/static-local-var-in-ctor.C: New test. Added: trunk/gcc/testsuite/g++.dg/debug/dwarf2/static-local-var-in-ctor.C Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-cfg.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39372