------- Comment #27 from dodji at gcc dot gnu dot org 2008-11-14 13:28 ------- Subject: Bug 27574
Author: dodji Date: Fri Nov 14 13:26:59 2008 New Revision: 141858 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141858 Log: gcc/ChangeLog: PR debug/27574 * cgraph.h: New abstract_and_needed member to struct cgraph_node. * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions -which clones are reachable - as "abstract and needed". * cgraph.c (cgraph_release_function_body): If a node is "abstract and needed", do not release its DECL_INITIAL() content will be needed to emit debug info. gcc/testsuite/ChangeLog: PR debug/27574 * g++.dg/debug/dwarf2/local-var-in-contructor.C: New test. Added: branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/cgraph.c branches/gcc-4_3-branch/gcc/cgraph.h branches/gcc-4_3-branch/gcc/cgraphunit.c branches/gcc-4_3-branch/gcc/final.c branches/gcc-4_3-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574