public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions
@ 2005-04-13 18:01 dpatel at apple dot com
2005-04-13 18:18 ` [Bug debug/20998] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: dpatel at apple dot com @ 2005-04-13 18:01 UTC (permalink / raw)
To: gcc-bugs
Here is the simple C++ program :
int main()
{
union {
int z;
unsigned int w;
}; w = 0;
}
--
Summary: GCC does not emit debug info for variables in anonymous
unions
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dpatel at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
@ 2005-04-13 18:18 ` pinskia at gcc dot gnu dot org
2005-04-13 18:19 ` dpatel at apple dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 18:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-13 18:18 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-13 18:18:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
2005-04-13 18:18 ` [Bug debug/20998] " pinskia at gcc dot gnu dot org
@ 2005-04-13 18:19 ` dpatel at apple dot com
2005-04-13 18:21 ` [Bug debug/20998] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dpatel at apple dot com @ 2005-04-13 18:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dpatel at apple dot com 2005-04-13 18:19 -------
Subject: Re: GCC does not emit debug info for variables in anonymous unions
It is because of ALIAS_DECL
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
2005-04-13 18:18 ` [Bug debug/20998] " pinskia at gcc dot gnu dot org
2005-04-13 18:19 ` dpatel at apple dot com
@ 2005-04-13 18:21 ` pinskia at gcc dot gnu dot org
2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 18:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-13 18:21 -------
This is a regression from 3.3.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-debug
Known to fail| |3.4.0 4.0.0 4.1.0
Known to work| |3.3.3
Summary|GCC does not emit debug info|[3.4/4.0/4.1 Regression] GCC
|for variables in anonymous |does not emit debug info for
|unions |variables in anonymous
| |unions
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (2 preceding siblings ...)
2005-04-13 18:21 ` [Bug debug/20998] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
2005-07-12 6:19 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:44 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (3 preceding siblings ...)
2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
@ 2005-07-12 6:19 ` pinskia at gcc dot gnu dot org
2005-07-22 21:15 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-12 6:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 06:06 -------
(In reply to comment #2)
> It is because of ALIAS_DECL
Which means it was caused by:
2002-12-18 Jason Merrill <jason@redhat.com>
Handle anonymous unions at the tree level.
C++ ABI change: Mangle anonymous unions using the name of their
first named field (by depth-first search). Should not cause
binary compatibility problems, though, as the compiler previously
didn't emit anything for affected unions.
* cp-tree.def (ALIAS_DECL): New tree code.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (4 preceding siblings ...)
2005-07-12 6:19 ` pinskia at gcc dot gnu dot org
@ 2005-07-22 21:15 ` pinskia at gcc dot gnu dot org
2005-09-09 7:14 ` rth at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 21:13 -------
Moving to 4.0.2 pre Mark.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.5 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (5 preceding siblings ...)
2005-07-22 21:15 ` pinskia at gcc dot gnu dot org
@ 2005-09-09 7:14 ` rth at gcc dot gnu dot org
2005-09-09 18:01 ` dpatel at apple dot com
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-09-09 7:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-04-13 18:18:01 |2005-09-09 07:13:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (6 preceding siblings ...)
2005-09-09 7:14 ` rth at gcc dot gnu dot org
@ 2005-09-09 18:01 ` dpatel at apple dot com
2005-09-09 19:08 ` rth at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dpatel at apple dot com @ 2005-09-09 18:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dpatel at apple dot com 2005-09-09 18:01 -------
Subject: Re: [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
It does not fix gdb.cp/anon-union.exp (from GDB testsuite) failures
using darwin GDB. If you do not get any other feedback/info then I'll
try to get back to this next week.
-
Devang
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (7 preceding siblings ...)
2005-09-09 18:01 ` dpatel at apple dot com
@ 2005-09-09 19:08 ` rth at gcc dot gnu dot org
2005-09-09 20:37 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-09-09 19:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-09-09 19:08 -------
Well it does with cvs head gdb on linux, both stabs and dwarf2. If you'll
verify that you see something akin to
.stabs "z:(0,7)",128,0,0,-4
.stabs "w:(0,9)",128,0,0,-4
in your assembly file, I'll close this as fixed on the gcc side.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (8 preceding siblings ...)
2005-09-09 19:08 ` rth at gcc dot gnu dot org
@ 2005-09-09 20:37 ` pinskia at gcc dot gnu dot org
2005-09-09 20:45 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-09 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-09 20:37 -------
I get:
.stabs "z:(0,9)",128,0,6,24
.stabs "w:(0,11)",128,0,6,24
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (9 preceding siblings ...)
2005-09-09 20:37 ` pinskia at gcc dot gnu dot org
@ 2005-09-09 20:45 ` pinskia at gcc dot gnu dot org
2005-09-09 21:06 ` rth at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-09 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-09 20:44 -------
(In reply to comment #9)
> I get:
> .stabs "z:(0,9)",128,0,6,24
> .stabs "w:(0,11)",128,0,6,24
After updating my gcc to the today's mainline instead of one from yesterday, darwin's gdb works
correctly for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (10 preceding siblings ...)
2005-09-09 20:45 ` pinskia at gcc dot gnu dot org
@ 2005-09-09 21:06 ` rth at gcc dot gnu dot org
2005-09-09 21:06 ` cvs-commit at gcc dot gnu dot org
2005-09-09 21:07 ` rth at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-09-09 21:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-09-09 21:06 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (11 preceding siblings ...)
2005-09-09 21:06 ` rth at gcc dot gnu dot org
@ 2005-09-09 21:06 ` cvs-commit at gcc dot gnu dot org
2005-09-09 21:07 ` rth at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-09 21:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-09 21:06 -------
Subject: Bug 20998
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: rth@gcc.gnu.org 2005-09-09 21:05:57
Modified files:
gcc : ChangeLog Makefile.in dbxout.c
gcc/cp : ChangeLog cp-tree.def decl2.c error.c
name-lookup.c semantics.c
Log message:
PR debug/20998
* dbxout.c: Include expr.h.
(dbxout_global_decl): Don't suppress for DECL_RTL unset.
(dbxout_symbol): Handle DECL_VALUE_EXPR.
* Makefile.in (dbxout.o): Add EXPR_H.
cp/
* cp-tree.def (ALIAS_DECL): Remove.
* cp-lang.c (cp_init_ts): Remove support for it.
* error.c (dump_decl): Likewise.
* name-lookup.c (pushdecl): Likewise.
* semantics.c (finish_id_expression): Likewise.
* decl2.c (build_anon_union_vars): Use a VAR_DECL with
DECL_VALUE_EXPR instead.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.422&r2=2.7592.2.423
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1447.2.4&r2=1.1447.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dbxout.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.221.2.2&r2=1.221.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.97&r2=1.4648.2.98
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.def.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.94.4.3&r2=1.94.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.770.2.7&r2=1.770.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.279.2.2&r2=1.279.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.109.4.8&r2=1.109.4.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.463.2.9&r2=1.463.2.10
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/20998] [3.4/4.0/4.1 Regression] GCC does not emit debug info for variables in anonymous unions
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
` (12 preceding siblings ...)
2005-09-09 21:06 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-09 21:07 ` rth at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-09-09 21:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-09-09 21:07 -------
Oh, and that's a WONTFIX for 3.4, in case anyone's interested.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2005-09-09 21:07 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 18:01 [Bug debug/20998] New: GCC does not emit debug info for variables in anonymous unions dpatel at apple dot com
2005-04-13 18:18 ` [Bug debug/20998] " pinskia at gcc dot gnu dot org
2005-04-13 18:19 ` dpatel at apple dot com
2005-04-13 18:21 ` [Bug debug/20998] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
2005-07-12 6:19 ` pinskia at gcc dot gnu dot org
2005-07-22 21:15 ` pinskia at gcc dot gnu dot org
2005-09-09 7:14 ` rth at gcc dot gnu dot org
2005-09-09 18:01 ` dpatel at apple dot com
2005-09-09 19:08 ` rth at gcc dot gnu dot org
2005-09-09 20:37 ` pinskia at gcc dot gnu dot org
2005-09-09 20:45 ` pinskia at gcc dot gnu dot org
2005-09-09 21:06 ` rth at gcc dot gnu dot org
2005-09-09 21:06 ` cvs-commit at gcc dot gnu dot org
2005-09-09 21:07 ` rth 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).