* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
@ 2004-02-06 16:53 ` mec dot gnu at mindspring dot com
2004-02-06 16:53 ` mec dot gnu at mindspring dot com
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-06 16:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-06 16:53 -------
Created an attachment (id=5694)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5694&action=view)
Source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
2004-02-06 16:53 ` [Bug debug/14049] " mec dot gnu at mindspring dot com
@ 2004-02-06 16:53 ` mec dot gnu at mindspring dot com
2004-02-06 16:53 ` mec dot gnu at mindspring dot com
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-06 16:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-06 16:53 -------
Created an attachment (id=5696)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5696&action=view)
Bad assembly code, gcc tree-ssa
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
2004-02-06 16:53 ` [Bug debug/14049] " mec dot gnu at mindspring dot com
2004-02-06 16:53 ` mec dot gnu at mindspring dot com
@ 2004-02-06 16:53 ` mec dot gnu at mindspring dot com
2004-02-06 17:08 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-06 16:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-06 16:53 -------
Created an attachment (id=5695)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5695&action=view)
Good assembly code, gcc HEAD
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (2 preceding siblings ...)
2004-02-06 16:53 ` mec dot gnu at mindspring dot com
@ 2004-02-06 17:08 ` pinskia at gcc dot gnu dot org
2004-02-06 17:49 ` mec dot gnu at mindspring dot com
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-06 17:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-debug
Known to fail| |tree-ssa
Known to work| |3.4.0
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (3 preceding siblings ...)
2004-02-06 17:08 ` pinskia at gcc dot gnu dot org
@ 2004-02-06 17:49 ` mec dot gnu at mindspring dot com
2004-02-06 17:50 ` mec dot gnu at mindspring dot com
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-06 17:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-06 17:49 -------
Created an attachment (id=5697)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5697&action=view)
Source code for a test case
Here is another test program for the same bug (I think it's the same bug).
The guts of the test case are:
void
do_block_tests ()
{
int cb = 12;
{
int foo;
foo = 123;
{
int foo2;
foo2 = 123;
{
int foo;
foo = 321;
}
foo2 = 0;
}
foo = 0;
}
cb = 21;
}
With both gcc HEAD and gcc tree-ssa, the dwarf-2 info looks like:
DW_TAG_subprogram do_block_tests
DW_TAG_variable cb
DW_TAG_lexical_block .LBB2 .LBE2
DW_TAG_variable foo
DW_TAG_lexical_block .LBB3 .LBE3
DW_TAG_variable foo2
DW_TAG_lexical_block .LBB4 .LBE4
DW_TAG_variable foo
The problem is that gcc tree-ssa generates bad LBB/LBE pairs that do not
include the first assignment to the local variable.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (4 preceding siblings ...)
2004-02-06 17:49 ` mec dot gnu at mindspring dot com
@ 2004-02-06 17:50 ` mec dot gnu at mindspring dot com
2004-02-06 17:50 ` mec dot gnu at mindspring dot com
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-06 17:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-06 17:50 -------
Created an attachment (id=5698)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5698&action=view)
Good assembly code, gcc HEAD
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (5 preceding siblings ...)
2004-02-06 17:50 ` mec dot gnu at mindspring dot com
@ 2004-02-06 17:50 ` mec dot gnu at mindspring dot com
2004-04-18 13:46 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-06 17:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-06 17:50 -------
Created an attachment (id=5699)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5699&action=view)
Bad assembly code, gcc tree-ssa
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (6 preceding siblings ...)
2004-02-06 17:50 ` mec dot gnu at mindspring dot com
@ 2004-04-18 13:46 ` pinskia at gcc dot gnu dot org
2004-04-18 13:53 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 13:46 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5694|application/octet-stream |text/plain
mime type| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (7 preceding siblings ...)
2004-04-18 13:46 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 13:53 ` pinskia at gcc dot gnu dot org
2004-04-18 13:58 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 13:53 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5696|application/octet-stream |text/plain
mime type| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (8 preceding siblings ...)
2004-04-18 13:53 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 13:58 ` pinskia at gcc dot gnu dot org
2004-04-18 14:06 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 13:58 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5695|application/octet-stream |text/plain
mime type| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (9 preceding siblings ...)
2004-04-18 13:58 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 14:06 ` pinskia at gcc dot gnu dot org
2004-04-18 14:08 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 14:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5697|application/octet-stream |text/plain
mime type| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug debug/14049] [regression tree-ssa] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (10 preceding siblings ...)
2004-04-18 14:06 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 14:08 ` pinskia at gcc dot gnu dot org
2004-07-14 4:55 ` [Bug tree-optimization/14049] [3.5 regression] " mec dot gnu at mindspring dot com
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-18 14:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-18 13:46 -------
I can confirm this.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-18 13:46:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/14049] [3.5 regression] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (11 preceding siblings ...)
2004-04-18 14:08 ` pinskia at gcc dot gnu dot org
@ 2004-07-14 4:55 ` mec dot gnu at mindspring dot com
2004-07-14 4:59 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-07-14 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-07-14 04:55 -------
This PR describes two distinct bugs. I thought they were two manifestations of
the same bug, but I guess they are not.
The bug with block.cc has been fixed in gcc HEAD 2004-07-06 12:02:23 UTC.
The last time I noticed it was broken was with gcc HEAD 2004-06-19 07:27:UTC.
The bug with scope.c still happens with gcc HEAD 2004-07-06 12:02:23 UTC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/14049] [3.5 regression] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (12 preceding siblings ...)
2004-07-14 4:55 ` [Bug tree-optimization/14049] [3.5 regression] " mec dot gnu at mindspring dot com
@ 2004-07-14 4:59 ` pinskia at gcc dot gnu dot org
2004-07-14 5:14 ` mec dot gnu at mindspring dot com
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-14 4:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-14 04:59 -------
scope.c I think has to do with scope is removed by the time we get to RTL but I could be wrong.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/14049] [3.5 regression] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (13 preceding siblings ...)
2004-07-14 4:59 ` pinskia at gcc dot gnu dot org
@ 2004-07-14 5:14 ` mec dot gnu at mindspring dot com
2004-08-27 14:48 ` [Bug middle-end/14049] " giovannibajo at libero dot it
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-07-14 5:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-07-14 05:14 -------
Subject: Re: [3.5 regression] bad debug block info, dwarf-2, c++
Would it help if I narrowed the problem with scope.c down to a
single patch? I could do that if you need it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug middle-end/14049] [3.5 regression] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (14 preceding siblings ...)
2004-07-14 5:14 ` mec dot gnu at mindspring dot com
@ 2004-08-27 14:48 ` giovannibajo at libero dot it
2004-08-28 0:20 ` mec dot gnu at mindspring dot com
2004-08-28 0:23 ` pinskia at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: giovannibajo at libero dot it @ 2004-08-27 14:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-08-27 14:48 -------
MEC, yes, if you could narrow down the problem to a single patch, we would know
who to bug about this.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovannibajo at libero dot
| |it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug middle-end/14049] [3.5 regression] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (15 preceding siblings ...)
2004-08-27 14:48 ` [Bug middle-end/14049] " giovannibajo at libero dot it
@ 2004-08-28 0:20 ` mec dot gnu at mindspring dot com
2004-08-28 0:23 ` pinskia at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-08-28 0:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-08-28 00:20 -------
Subject: Re: [3.5 regression] bad debug block info,
dwarf-2, c++
I checked again with gcc HEAD 20040824 and the bug in scope.c has
been fixed. The bug in block.cc is also still fixed.
The gdb test suite is happy too. This was manifesting as regressions
in gdb.mi/mi-var-block.exp and gdb.mi/mi2-var-block.exp.
I couldn't see the fixed results in my test bed because the gdb.mi/*.exp
tests got blinded by the new warning for "incompatible implicit
declaration of built-in function". The tests themselves just got
fixed a few days ago.
So I think this PR can go to RESOLVED/FIXED now.
I don't think it would be worth my time to chase down the patch that
caused the bug or the patch that fixed it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug middle-end/14049] [3.5 regression] bad debug block info, dwarf-2, c++
2004-02-06 16:39 [Bug debug/14049] New: [regression tree-ssa] bad debug block info, dwarf-2, c++ mec dot gnu at mindspring dot com
` (16 preceding siblings ...)
2004-08-28 0:20 ` mec dot gnu at mindspring dot com
@ 2004-08-28 0:23 ` pinskia at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-28 0:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-28 00:23 -------
so closing as fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14049
^ permalink raw reply [flat|nested] 19+ messages in thread