public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/11279] New: DWARF-2 output mishandles large enums
@ 2003-06-21 20:53 drow at gcc dot gnu dot org
  2003-07-05 15:19 ` [Bug debug/11279] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: drow at gcc dot gnu dot org @ 2003-06-21 20:53 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279

           Summary: DWARF-2 output mishandles large enums
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drow at gcc dot gnu dot org
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu

Given this line:
enum e {I, J=(unsigned)0xffffffff} e = J;

Compiled with -gdwarf-2, we get:
 <2><2f>: Abbrev Number: 3 (DW_TAG_enumerator)
     DW_AT_name        : I
     DW_AT_const_value : 0
 <2><33>: Abbrev Number: 4 (DW_TAG_enumerator)
     DW_AT_name        : J

There is no DW_AT_const_value for J, so GDB can not figure out
the value of J.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/11279] [3.3/3.4 Regression] DWARF-2 output mishandles large enums
  2003-06-21 20:53 [Bug debug/11279] New: DWARF-2 output mishandles large enums drow at gcc dot gnu dot org
@ 2003-07-05 15:19 ` pinskia at physics dot uc dot edu
  2003-07-20  4:56 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-05 15:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-05 15:19:56
               date|                            |
            Summary|DWARF-2 output mishandles   |[3.3/3.4 Regression] DWARF-2
                   |large enums                 |output mishandles large
                   |                            |enums
   Target Milestone|3.4                         |3.3.1


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-05 15:19 -------
I can confirm this on 3.2.3, 3.3.1 (20030616) and the mainline (20030705), but on 3.0.4, I 
get:

 <2><61>: Abbrev Number: 4 (DW_TAG_enumerator)
     DW_AT_name        : J
     DW_AT_const_value : -1

So this is a regression wrt 3.0.4.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/11279] [3.3/3.4 Regression] DWARF-2 output mishandles large enums
  2003-06-21 20:53 [Bug debug/11279] New: DWARF-2 output mishandles large enums drow at gcc dot gnu dot org
  2003-07-05 15:19 ` [Bug debug/11279] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
@ 2003-07-20  4:56 ` mmitchel at gcc dot gnu dot org
  2003-07-20  7:23 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-20  4:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/11279] [3.3/3.4 Regression] DWARF-2 output mishandles large enums
  2003-06-21 20:53 [Bug debug/11279] New: DWARF-2 output mishandles large enums drow at gcc dot gnu dot org
  2003-07-05 15:19 ` [Bug debug/11279] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
  2003-07-20  4:56 ` mmitchel at gcc dot gnu dot org
@ 2003-07-20  7:23 ` cvs-commit at gcc dot gnu dot org
  2003-07-20  7:25 ` cvs-commit at gcc dot gnu dot org
  2003-07-20  7:27 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-20  7:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-07-20 07:23 -------
Subject: Bug 11279

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	mmitchel@gcc.gnu.org	2003-07-20 07:22:59

Modified files:
	gcc            : ChangeLog dwarf2out.c 

Log message:
	PR debug/11279
	* dwarf2out.c (gen_enumeration_type_die): Remember that
	enumerators can be unsigned.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.675&r2=1.16114.2.676
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.390.2.7&r2=1.390.2.8


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/11279] [3.3/3.4 Regression] DWARF-2 output mishandles large enums
  2003-06-21 20:53 [Bug debug/11279] New: DWARF-2 output mishandles large enums drow at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-07-20  7:23 ` cvs-commit at gcc dot gnu dot org
@ 2003-07-20  7:25 ` cvs-commit at gcc dot gnu dot org
  2003-07-20  7:27 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-20  7:25 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-07-20 07:25 -------
Subject: Bug 11279

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2003-07-20 07:24:58

Modified files:
	gcc            : ChangeLog dwarf2out.c 

Log message:
	PR debug/11279
	* dwarf2out.c (gen_enumeration_type_die): Remember that
	enumerators can be unsigned.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.573&r2=2.574
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&r1=1.443&r2=1.444


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/11279] [3.3/3.4 Regression] DWARF-2 output mishandles large enums
  2003-06-21 20:53 [Bug debug/11279] New: DWARF-2 output mishandles large enums drow at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-07-20  7:25 ` cvs-commit at gcc dot gnu dot org
@ 2003-07-20  7:27 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-20  7:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11279


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-07-20 07:27 -------
Fixed in GCC 3.3.1 and GCC 3.4.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-07-20  7:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-21 20:53 [Bug debug/11279] New: DWARF-2 output mishandles large enums drow at gcc dot gnu dot org
2003-07-05 15:19 ` [Bug debug/11279] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
2003-07-20  4:56 ` mmitchel at gcc dot gnu dot org
2003-07-20  7:23 ` cvs-commit at gcc dot gnu dot org
2003-07-20  7:25 ` cvs-commit at gcc dot gnu dot org
2003-07-20  7:27 ` mmitchel 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).