This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
- 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: 3 Oct 2008 13:28:17 -0000
- Subject: [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int foo (int parm)
{
int var = 0;
int bar (void)
{
return parm + var;
}
parm++;
var++;
return bar ();
}
int
main (void)
{
return foo (4) - 6;
}
at -O0 -g this was perfectly debuggable in 4.3, but doesn't know anything about
parm or var, neither in the outer nor inner function.
--
Summary: [4.4 Regression] Even at -O0 -g debuginfo for vars
mentioned in nested fns is not emitted
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: jakub at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37726