This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Nov 2008 00:17:23 -0000
- Subject: [Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor
- References: <bug-27574-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <dodji@redhat.com>
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 <dodji@redhat.com>
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