public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables
@ 2004-02-01 7:21 mec dot gnu at mindspring dot com
2004-02-01 7:23 ` [Bug debug/13956] " mec dot gnu at mindspring dot com
` (22 more replies)
0 siblings, 23 replies; 24+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-01 7:21 UTC (permalink / raw)
To: gcc-bugs
Here is an excerpt from a test program:
void f1 ()
{
int alpha;
int beta;
...
{
int alpha;
int gamma;
...
}
...
}
My command line is "gcc -gstabs+ -S alpha.c".
With gcc 3.3.2, I get these healthy-looking stabs:
.LBE2:
.size f1, .-f1
.stabs "alpha:(0,1)",128,0,15,-4
.stabs "beta:(0,1)",128,0,16,-8
.stabn 192,0,0,.LBB2-f1
.stabs "alpha:(0,1)",128,0,21,-12
.stabs "gamma:(0,1)",128,0,22,-16
.stabn 192,0,0,.LBB3-f1
.stabn 224,0,0,.LBE3-f1
.stabn 224,0,0,.LBE2-f1
stabn 192 is N_LBRAC, and stabn 224 is N_RBRAC. Each group of local variables
is followed by its range. All is well.
With gcc HEAD 2003-04-11 03:00:00 UTC, all is still fine:
.LBE2:
.size f1, .-f1
.stabs "alpha:(0,1)",128,0,15,-4
.stabs "beta:(0,1)",128,0,16,-8
.stabn 192,0,0,.LBB2-f1
.stabs "alpha:(0,1)",128,0,21,-12
.stabs "gamma:(0,1)",128,0,22,-16
.stabn 192,0,0,.LBB3-f1
.stabn 224,0,0,.LBE3-f1
.stabn 224,0,0,.LBE2-f1
With gcc HEAD 2003-04-11 04:30:00 UTC, the stabs are wrong:
.size f1, .-f1
.stabs "alpha:(0,1)",128,0,15,-4
.stabs "beta:(0,1)",128,0,16,-8
.stabs "alpha:(0,1)",128,0,21,-12
.stabs "gamma:(0,1)",128,0,22,-16
.stabn 192,0,0,.LBB2-f1
.stabn 224,0,0,.LBE2-f1
One of the N_LBRAC/N_RBRAC pairs has disappeared.
And with current gcc, gcc HEAD 2004-02-01 01:34:15 UTC:
.size f1, .-f1
.stabs "alpha:(0,1)",128,0,15,-4
.stabs "beta:(0,1)",128,0,16,-8
.stabs "alpha:(0,1)",128,0,21,-12
.stabs "gamma:(0,1)",128,0,22,-16
.stabn 192,0,0,.LBB2-f1
.stabn 224,0,0,.LBE2-f1
This problem came in with this patch:
2003-04-10 Zack Weinberg <zack@codesourcery.com>
* c-decl.c (struct binding_level): Add shadowed_tags and
function_body; remove this_block, tag_transparent, and
subblocks_tag_transparent; update comments.
...
2003-04-10 Zack Weinberg <zack@codesourcery.com>
* c-tree.h (struct lang_identifier): Replace global_value,
local_value members with symbol_value, tag_value. Kill
implicit_decl and limbo_value.
...
There are two ChangeLog entries here, but only one patch.
This is the same patch that caused PR debug/12267. Per the comments in 12267,
I'm assigning it to Zack (or trying to).
Attachments to follow.
--
Summary: [3.4/3.5 regression] incorrect stabs for nested local
variables
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: debug
AssignedTo: zack at gcc dot gnu dot org
ReportedBy: mec dot gnu at mindspring dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
@ 2004-02-01 7:23 ` mec dot gnu at mindspring dot com
2004-02-01 7:24 ` mec dot gnu at mindspring dot com
` (21 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-01 7:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-01 07:23 -------
Created an attachment (id=5633)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5633&action=view)
Source code with nested scopes.
Compile with gcc -S -gstabs+.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
2004-02-01 7:23 ` [Bug debug/13956] " mec dot gnu at mindspring dot com
2004-02-01 7:24 ` mec dot gnu at mindspring dot com
@ 2004-02-01 7:24 ` mec dot gnu at mindspring dot com
2004-02-01 13:15 ` pinskia at gcc dot gnu dot org
` (19 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-01 7:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-01 07:24 -------
Created an attachment (id=5634)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5634&action=view)
Generated assembly code, good, gcc 3.3.2 -S -gstabs+
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
2004-02-01 7:23 ` [Bug debug/13956] " mec dot gnu at mindspring dot com
@ 2004-02-01 7:24 ` mec dot gnu at mindspring dot com
2004-02-01 7:24 ` mec dot gnu at mindspring dot com
` (20 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-02-01 7:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-02-01 07:24 -------
Created an attachment (id=5635)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5635&action=view)
Generated assembly code, bad, gcc HEAD 2004-02-01 -gstabs+ -S
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (2 preceding siblings ...)
2004-02-01 7:24 ` mec dot gnu at mindspring dot com
@ 2004-02-01 13:15 ` pinskia at gcc dot gnu dot org
2004-03-15 21:05 ` zack at gcc dot gnu dot org
` (18 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-01 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-01 13:15 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Keywords| |wrong-debug
Known to work| |3.3.1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-01 13:15:55
date| |
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (3 preceding siblings ...)
2004-02-01 13:15 ` pinskia at gcc dot gnu dot org
@ 2004-03-15 21:05 ` zack at gcc dot gnu dot org
2004-03-16 2:20 ` mec dot gnu at mindspring dot com
` (17 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-03-15 21:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-03-15 21:05 -------
fixed the mime types of all the attachments. sorry for the noise.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (4 preceding siblings ...)
2004-03-15 21:05 ` zack at gcc dot gnu dot org
@ 2004-03-16 2:20 ` mec dot gnu at mindspring dot com
2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
` (16 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-03-16 2:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-03-16 02:20 -------
Subject: Re: [3.4/3.5 regression] incorrect stabs for nested local variables
> fixed the mime types of all the attachments. sorry for the noise.
Woops, sorry for the un-useful mime types. I was letting
them be set automatically. In the future I will set them explicitly
to text/plain.
Michael C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (6 preceding siblings ...)
2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
@ 2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
2004-03-21 18:07 ` ebotcazou at gcc dot gnu dot org
` (14 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-21 17:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-21 17:56 -------
Regarted at 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (5 preceding siblings ...)
2004-03-16 2:20 ` mec dot gnu at mindspring dot com
@ 2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
` (15 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-21 17:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-21 17:56 -------
Given that stabs are only used on a few platforms by deafult, and that Zack
doesn't think this easy to fix for 3.4.0, I've retargeted this at 3.4.1.
Zack, does the c-decl rewrite fix this one too?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (7 preceding siblings ...)
2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
@ 2004-03-21 18:07 ` ebotcazou at gcc dot gnu dot org
2004-03-21 18:20 ` zack at codesourcery dot com
` (13 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-03-21 18:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-03-21 18:07 -------
One of the primary platforms (sparc-sun-solaris2.8) use stabs by default.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (8 preceding siblings ...)
2004-03-21 18:07 ` ebotcazou at gcc dot gnu dot org
@ 2004-03-21 18:20 ` zack at codesourcery dot com
2004-03-23 21:32 ` mark at codesourcery dot com
` (12 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: zack at codesourcery dot com @ 2004-03-21 18:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at codesourcery dot com 2004-03-21 18:20 -------
Subject: Re: [3.4/3.5 regression] incorrect stabs for
nested local variables
This one, unfortunately, is not fixed by the c-decl rewrite; I mean to
look at it as soon as I get the rewrite laid down, but my time is very
limited for the next two weeks.
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (9 preceding siblings ...)
2004-03-21 18:20 ` zack at codesourcery dot com
@ 2004-03-23 21:32 ` mark at codesourcery dot com
2004-03-23 23:30 ` ebotcazou at gcc dot gnu dot org
` (11 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mark at codesourcery dot com @ 2004-03-23 21:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2004-03-23 21:32 -------
Subject: Re: [3.4/3.5 regression] incorrect stabs for nested
local variables
ebotcazou at gcc dot gnu dot org wrote:
>------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-03-21 18:07 -------
>One of the primary platforms (sparc-sun-solaris2.8) use stabs by default.
>
>
How unfortunate.
As a SPARC user, do you think this is a showstopper problem?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (10 preceding siblings ...)
2004-03-23 21:32 ` mark at codesourcery dot com
@ 2004-03-23 23:30 ` ebotcazou at gcc dot gnu dot org
2004-03-29 15:28 ` drow at false dot org
` (10 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-03-23 23:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-03-23 23:30 -------
Probably no, since GCC can generate DWARF-2 debug info on Solaris 7 and later,
that both DBX and GDB can grok (DWARF-2 is not available on Solaris 2.6 and
earlier). But it would be nice to fix it on the 3.4 branch at some point.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (11 preceding siblings ...)
2004-03-23 23:30 ` ebotcazou at gcc dot gnu dot org
@ 2004-03-29 15:28 ` drow at false dot org
2004-03-29 16:52 ` ebotcazou at gcc dot gnu dot org
` (9 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: drow at false dot org @ 2004-03-29 15:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From drow at false dot org 2004-03-29 15:28 -------
Subject: Re: [3.4/3.5 regression] incorrect stabs for nested local variables
Should DWARF-2 be the default for Solaris 7 and later, then? I'm in
favor of anything that decreases use of stabs!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (12 preceding siblings ...)
2004-03-29 15:28 ` drow at false dot org
@ 2004-03-29 16:52 ` ebotcazou at gcc dot gnu dot org
2004-03-30 17:01 ` mark at codesourcery dot com
` (8 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-03-29 16:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-03-29 16:52 -------
I guess so, since DWARF-2 is already the default for 64-bit code.
Mark, do you think we can switch the default debug format for 32-bit code too?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (13 preceding siblings ...)
2004-03-29 16:52 ` ebotcazou at gcc dot gnu dot org
@ 2004-03-30 17:01 ` mark at codesourcery dot com
2004-06-18 23:49 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mark at codesourcery dot com @ 2004-03-30 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2004-03-30 17:01 -------
Subject: Re: [3.4/3.5 regression] incorrect stabs for nested
local variables
ebotcazou at gcc dot gnu dot org wrote:
>------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-03-29 16:52 -------
>I guess so, since DWARF-2 is already the default for 64-bit code.
>
>Mark, do you think we can switch the default debug format for 32-bit code too?
>
>
Yes, I do, actually. It would be good to do a little testing there to
make sure that GDB basically works, but it's hard for me to see how
DWARF-2, which we use on so many systems, including other SPARC
configurations, could be worse than STABS.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (14 preceding siblings ...)
2004-03-30 17:01 ` mark at codesourcery dot com
@ 2004-06-18 23:49 ` mmitchel at gcc dot gnu dot org
2004-06-19 5:54 ` ebotcazou at gcc dot gnu dot org
` (6 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-18 23:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-06-18 23:49 -------
Eric -- didn't we end up switching to DWARF for Solaris? If so, would you
please close this as WONTFIX?
Postponed until GCC 3.4.2 in the meanwhile.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Target Milestone|3.4.1 |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (15 preceding siblings ...)
2004-06-18 23:49 ` mmitchel at gcc dot gnu dot org
@ 2004-06-19 5:54 ` ebotcazou at gcc dot gnu dot org
2004-06-21 3:05 ` drow at false dot org
` (5 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-06-19 5:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-06-19 05:54 -------
> Eric -- didn't we end up switching to DWARF for Solaris?
Yes, we did. This uncovered a couple of issues, one in each of the 2 supported
assemblers, but nothing that would justify the backwards move I'd say.
> If so, would you please close this as WONTFIX?
Done.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
Target Milestone|3.4.2 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (16 preceding siblings ...)
2004-06-19 5:54 ` ebotcazou at gcc dot gnu dot org
@ 2004-06-21 3:05 ` drow at false dot org
2004-06-21 3:58 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: drow at false dot org @ 2004-06-21 3:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From drow at false dot org 2004-06-21 03:05 -------
Subject: Re: [3.4/3.5 regression] incorrect stabs for nested local variables
Doesn't this bug still affect HEAD stabs generation? Surely
SPARC/Solaris was not the only platform left which used stabs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (17 preceding siblings ...)
2004-06-21 3:05 ` drow at false dot org
@ 2004-06-21 3:58 ` pinskia at gcc dot gnu dot org
2004-07-04 23:26 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-21 3:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-21 03:58 -------
Yes, Mac OS X (darwin) is effect also (even though dwarf-2 support was just added, it is still not the
default).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (18 preceding siblings ...)
2004-06-21 3:58 ` pinskia at gcc dot gnu dot org
@ 2004-07-04 23:26 ` pinskia at gcc dot gnu dot org
2004-08-04 7:32 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-04 23:26 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (19 preceding siblings ...)
2004-07-04 23:26 ` pinskia at gcc dot gnu dot org
@ 2004-08-04 7:32 ` cvs-commit at gcc dot gnu dot org
2004-08-04 7:36 ` zack at gcc dot gnu dot org
2004-08-05 16:29 ` mec dot gnu at mindspring dot com
22 siblings, 0 replies; 24+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-04 7:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-04 07:32 -------
Subject: Bug 13956
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: zack@gcc.gnu.org 2004-08-04 07:32:20
Modified files:
gcc : ChangeLog dbxout.c
Log message:
PR 13956
* dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
functions, broken out of dbxout_block.
(dbxout_block): The block at depth 0 should get LBRAC/RBRAC
stabs too, if it contains symbols. Use the begin_label and
the Lscope label (emitted by dbxout_function_end) for the
range of this block.
(dbxout_function_decl): Always call dbxout_function_end.
(dbxout_function_end): Return after emitting the "Lscope" symbol
under the same conditions that this function formerly wasn't called.
Add explanatory comments.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.573&r2=2.2326.2.574
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dbxout.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.172.2.1&r2=1.172.2.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (20 preceding siblings ...)
2004-08-04 7:32 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-04 7:36 ` zack at gcc dot gnu dot org
2004-08-05 16:29 ` mec dot gnu at mindspring dot com
22 siblings, 0 replies; 24+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-08-04 7:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-08-04 07:36 -------
there.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug debug/13956] [3.4/3.5 regression] incorrect stabs for nested local variables
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
` (21 preceding siblings ...)
2004-08-04 7:36 ` zack at gcc dot gnu dot org
@ 2004-08-05 16:29 ` mec dot gnu at mindspring dot com
22 siblings, 0 replies; 24+ messages in thread
From: mec dot gnu at mindspring dot com @ 2004-08-05 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec dot gnu at mindspring dot com 2004-08-05 16:29 -------
gcc HEAD works great for me.
I tested it on three examples that I had and it worked on all of them.
Also I ran the gdb test suite on native i686-pc-linux-gnu with this test matrix:
gdb 6.1.1, gdb HEAD
gdb test suite HEAD, with local modifications
gcc 3.4.1, gcc HEAD 20040731, gcc HEAD 20040804
debug formats dwarf2, stabs+
The bugs got fixed (gdb.base/scope.exp in particular) and no new regressions
appeared. Cheers for Zack!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13956
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2004-08-05 16:29 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-01 7:21 [Bug debug/13956] New: [3.4/3.5 regression] incorrect stabs for nested local variables mec dot gnu at mindspring dot com
2004-02-01 7:23 ` [Bug debug/13956] " mec dot gnu at mindspring dot com
2004-02-01 7:24 ` mec dot gnu at mindspring dot com
2004-02-01 7:24 ` mec dot gnu at mindspring dot com
2004-02-01 13:15 ` pinskia at gcc dot gnu dot org
2004-03-15 21:05 ` zack at gcc dot gnu dot org
2004-03-16 2:20 ` mec dot gnu at mindspring dot com
2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
2004-03-21 17:56 ` mmitchel at gcc dot gnu dot org
2004-03-21 18:07 ` ebotcazou at gcc dot gnu dot org
2004-03-21 18:20 ` zack at codesourcery dot com
2004-03-23 21:32 ` mark at codesourcery dot com
2004-03-23 23:30 ` ebotcazou at gcc dot gnu dot org
2004-03-29 15:28 ` drow at false dot org
2004-03-29 16:52 ` ebotcazou at gcc dot gnu dot org
2004-03-30 17:01 ` mark at codesourcery dot com
2004-06-18 23:49 ` mmitchel at gcc dot gnu dot org
2004-06-19 5:54 ` ebotcazou at gcc dot gnu dot org
2004-06-21 3:05 ` drow at false dot org
2004-06-21 3:58 ` pinskia at gcc dot gnu dot org
2004-07-04 23:26 ` pinskia at gcc dot gnu dot org
2004-08-04 7:32 ` cvs-commit at gcc dot gnu dot org
2004-08-04 7:36 ` zack at gcc dot gnu dot org
2004-08-05 16:29 ` mec dot gnu at mindspring dot com
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).