[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- Comment #32 from pinskia at gcc dot gnu dot org 2009-04-29 15:09 --- *** Bug 39961 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||thb at openoffice dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Known to work|4.0.2 4.4.0 4.3.3 |4.0.2 4.4.0 Target Milestone|4.2.5 |4.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- Comment #31 from amylaar at gcc dot gnu dot org 2008-12-09 18:48 --- Sorry, I only checked for the presence of the original testcase name in the testsuite, and thus missed the fact that there is a new test called local-var-in-contructor.C [sic] . -- amylaar at gcc dot gnu dot org changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- Comment #30 from amylaar at gcc dot gnu dot org 2008-12-09 18:22 --- I think the testcase pr27574.C should be added to the testsuite before closing this bug. -- amylaar at gcc dot gnu dot org changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- Comment #29 from dodji at gcc dot gnu dot org 2008-11-19 00:21 --- Fixed in trunk, 4.3 and 4.2 branch. -- dodji at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- Comment #28 from dodji at gcc dot gnu dot org 2008-11-19 00:17 --- Subject: Bug 27574 Author: dodji Date: Wed Nov 19 00:15:52 2008 New Revision: 141984 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141984 Log: gcc/ChangeLog: 2008-11-14 Dodji Seketeli <[EMAIL PROTECTED]> PR c++/27574 * gcc/cgraph.c (cgraph_remove_node): Do not remove the body of abstract functions. It might be useful to emit debugging information. This is a patch from Ian Lance Taylor. * cgraphunit.c (cgraph_optimize): Do not cry when bodies of abstract functions are still around. They are useful to output debug info. gcc/testsuite/ChangeLog 2008-11-14 Dodji Seketeli <[EMAIL PROTECTED]> PR c++/27574 * testsuite/g++.dg/debug/dwarf2/dwarf2.exp: Backport this here from gcc-4_3-branch. * g++.dg/debug/dwarf2/local-var-in-contructor.C: New testcase. Added: branches/gcc-4_2-branch/gcc/testsuite/g++.dg/debug/dwarf2/ branches/gcc-4_2-branch/gcc/testsuite/g++.dg/debug/dwarf2/dwarf2.exp branches/gcc-4_2-branch/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C Modified: branches/gcc-4_2-branch/gcc/ChangeLog branches/gcc-4_2-branch/gcc/cgraph.c branches/gcc-4_2-branch/gcc/cgraphunit.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- 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
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
--- Comment #26 from dodji at gcc dot gnu dot org 2008-11-13 10:56 --- Subject: Bug 27574 Author: dodji Date: Thu Nov 13 10:55:01 2008 New Revision: 141819 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141819 Log: Fix ChangeLog entry: 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 that will be needed to emit debug info. Modified: trunk/gcc/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574