public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
@ 2008-10-03 13:29 jakub at gcc dot gnu dot org
2008-10-03 13:31 ` [Bug debug/37726] " jakub at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-03 13:29 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/37726] [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
2008-10-03 13:29 [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted jakub at gcc dot gnu dot org
@ 2008-10-03 13:31 ` jakub at gcc dot gnu dot org
2008-10-03 18:58 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-03 13:31 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-10-03 13:29:37
date| |
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37726
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/37726] [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
2008-10-03 13:29 [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted jakub at gcc dot gnu dot org
2008-10-03 13:31 ` [Bug debug/37726] " jakub at gcc dot gnu dot org
@ 2008-10-03 18:58 ` jakub at gcc dot gnu dot org
2008-10-03 19:37 ` jakub at gcc dot gnu dot org
2008-10-07 20:05 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-03 18:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2008-10-03 18:57 -------
Subject: Bug 37726
Author: jakub
Date: Fri Oct 3 18:55:39 2008
New Revision: 140857
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140857
Log:
PR debug/37726
* gimplify.c (declare_vars): Use gimple_bind_block instead of
gimple_block.
* gcc.dg/debug/dwarf2/pr37726.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr37726.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37726
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/37726] [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
2008-10-03 13:29 [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted jakub at gcc dot gnu dot org
2008-10-03 13:31 ` [Bug debug/37726] " jakub at gcc dot gnu dot org
2008-10-03 18:58 ` jakub at gcc dot gnu dot org
@ 2008-10-03 19:37 ` jakub at gcc dot gnu dot org
2008-10-07 20:05 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-03 19:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-10-03 19:35 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37726
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/37726] [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted
2008-10-03 13:29 [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-10-03 19:37 ` jakub at gcc dot gnu dot org
@ 2008-10-07 20:05 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-10-07 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-10-07 20:04 -------
This test does not work for darwin for some reason, I have not looked why
though, I bet it is due to the way dwarf2 is outputted there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37726
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-07 20:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-03 13:29 [Bug debug/37726] New: [4.4 Regression] Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted jakub at gcc dot gnu dot org
2008-10-03 13:31 ` [Bug debug/37726] " jakub at gcc dot gnu dot org
2008-10-03 18:58 ` jakub at gcc dot gnu dot org
2008-10-03 19:37 ` jakub at gcc dot gnu dot org
2008-10-07 20:05 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).