public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
@ 2005-10-31  4:56 ` mmitchel at gcc dot gnu dot org
  2005-11-16 20:54 ` aldyh at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  4:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2005-10-31 04:56 -------
Leaving as P2; we should definitely fix this.


-- 


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


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

* [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
  2005-10-31  4:56 ` [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types mmitchel at gcc dot gnu dot org
@ 2005-11-16 20:54 ` aldyh at gcc dot gnu dot org
  2006-02-24  0:31 ` [Bug debug/23336] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-11-16 20:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from aldyh at gcc dot gnu dot org  2005-11-16 20:54 -------
What the heck...death by dwarf.  I'll take a look at this.


-- 

aldyh at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aldyh at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug debug/23336] [3.4/4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
  2005-10-31  4:56 ` [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types mmitchel at gcc dot gnu dot org
  2005-11-16 20:54 ` aldyh at gcc dot gnu dot org
@ 2006-02-24  0:31 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:35 ` [Bug debug/23336] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24  0:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-02-24 00:26 -------
This issue will not be resolved in GCC 4.1.0; retargeted at GCC 4.1.1.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.1.1


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


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

* [Bug debug/23336] [4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-02-24  0:31 ` [Bug debug/23336] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:35 ` mmitchel at gcc dot gnu dot org
  2006-06-03 22:22 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2006-05-25 02:33 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug debug/23336] [4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-05-25  2:35 ` [Bug debug/23336] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-06-03 22:22 ` pinskia at gcc dot gnu dot org
  2006-06-03 22:32 ` aldyh at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-03 22:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-06-03 22:22 -------
This still fails on the mainline.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-10-13 19:28:43         |2006-06-03 22:22:04
               date|                            |


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


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

* [Bug debug/23336] [4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-06-03 22:22 ` pinskia at gcc dot gnu dot org
@ 2006-06-03 22:32 ` aldyh at gcc dot gnu dot org
  2006-07-22 18:06 ` drow at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2006-06-03 22:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from aldyh at gcc dot gnu dot org  2006-06-03 22:32 -------
This still fails because it hasn't been fixed ;-).  My patch for
-feliminate-unused-debug-types only handled casts.  It needs further front-end
work to handle enums.  At least the infrastructure is in place for the
front-end work.


-- 


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


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

* [Bug debug/23336] [4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2006-06-03 22:32 ` aldyh at gcc dot gnu dot org
@ 2006-07-22 18:06 ` drow at gcc dot gnu dot org
  2006-07-22 18:34 ` drow at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: drow at gcc dot gnu dot org @ 2006-07-22 18:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from drow at gcc dot gnu dot org  2006-07-22 18:06 -------
Hmm.  What's happening here is that we set TREE_USED on the enumerator, but not
on the type.  The enumerator never gets output, because the type is not output.

It would probably be a strict improvement to add the type to the used_types
hash table like we now do for casts.

However, that is not a great solution either.  It won't cause the enum to be
emitted for "static int x = JTI_MAX;" at the global scope even if x is emitted.
 We really need a more general solution to this...


-- 


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


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

* [Bug debug/23336] [4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2006-07-22 18:06 ` drow at gcc dot gnu dot org
@ 2006-07-22 18:34 ` drow at gcc dot gnu dot org
  2006-08-01 14:24 ` drow at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: drow at gcc dot gnu dot org @ 2006-07-22 18:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from drow at gcc dot gnu dot org  2006-07-22 18:34 -------
Meanwhile, I'm testing a patch to treat them just as well as we treat casts.


-- 

drow at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aldyh at gcc dot gnu dot org|drow at gcc dot gnu dot org


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


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

* [Bug debug/23336] [4.0/4.1/4.2 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2006-07-22 18:34 ` drow at gcc dot gnu dot org
@ 2006-08-01 14:24 ` drow at gcc dot gnu dot org
  2006-08-02 13:35 ` [Bug debug/23336] [4.0/4.1 " drow at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: drow at gcc dot gnu dot org @ 2006-08-01 14:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from drow at gcc dot gnu dot org  2006-08-01 14:24 -------
Subject: Bug 23336

Author: drow
Date: Tue Aug  1 14:23:58 2006
New Revision: 115853

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115853
Log:
gcc/
        PR debug/23336
        * c-typeck.c (build_external_type): Mark used enum types.
        * dwarf2out.c (dwarf2out_abstract_function): Save and restore
        cfun also.
        (gen_subprogram_die): Whitespace fix.
gcc/cp/
        PR debug/23336
        * pt.c (tsubst_copy_and_build): Mark used enum types.
        * semantics.c (finish_id_expression): Likewise.
gcc/testsuite/
        PR debug/23336
        * lib/gcc-dg.exp (gcc-dg-debug-runtest): Suppress new tests
        at -g1.
        * gcc.dg/debug/enum-1.c, g++.dg/debug/enum-1.C,
        g++.dg/debug/enum-2.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/debug/enum-1.C
    trunk/gcc/testsuite/g++.dg/debug/enum-2.C
    trunk/gcc/testsuite/gcc.dg/debug/enum-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/gcc-dg.exp


-- 


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


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

* [Bug debug/23336] [4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2006-08-01 14:24 ` drow at gcc dot gnu dot org
@ 2006-08-02 13:35 ` drow at gcc dot gnu dot org
  2007-02-14  9:06 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: drow at gcc dot gnu dot org @ 2006-08-02 13:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from drow at gcc dot gnu dot org  2006-08-02 13:35 -------
Fixed for 4.2.


-- 

drow at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1/4.2 Regression]    |[4.0/4.1 Regression] enum
                   |enum constants not visible  |constants not visible to gdb
                   |to gdb because of -         |because of -feliminate-
                   |feliminate-unused-debug-    |unused-debug-types
                   |types                       |


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


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

* [Bug debug/23336] [4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2006-08-02 13:35 ` [Bug debug/23336] [4.0/4.1 " drow at gcc dot gnu dot org
@ 2007-02-14  9:06 ` mmitchel at gcc dot gnu dot org
  2008-01-21 21:46 ` drow at gcc dot gnu dot org
  2008-07-04 15:09 ` [Bug debug/23336] [4.1 " jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


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


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

* [Bug debug/23336] [4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2007-02-14  9:06 ` mmitchel at gcc dot gnu dot org
@ 2008-01-21 21:46 ` drow at gcc dot gnu dot org
  2008-07-04 15:09 ` [Bug debug/23336] [4.1 " jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 13+ messages in thread
From: drow at gcc dot gnu dot org @ 2008-01-21 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from drow at gcc dot gnu dot org  2008-01-21 20:59 -------
I don't care about 4.0/4.1 at this date.


-- 

drow at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drow at gcc dot gnu dot org |unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug debug/23336] [4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types
       [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2008-01-21 21:46 ` drow at gcc dot gnu dot org
@ 2008-07-04 15:09 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from jsm28 at gcc dot gnu dot org  2008-07-04 15:08 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|3.4.0 4.0.0 4.0.4 4.1.0     |3.4.0 4.0.0 4.0.4 4.1.0
                   |                            |4.1.3
      Known to work|3.3.3                       |3.3.3 4.2.0
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

end of thread, other threads:[~2008-07-04 15:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23336-360@http.gcc.gnu.org/bugzilla/>
2005-10-31  4:56 ` [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb because of -feliminate-unused-debug-types mmitchel at gcc dot gnu dot org
2005-11-16 20:54 ` aldyh at gcc dot gnu dot org
2006-02-24  0:31 ` [Bug debug/23336] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-05-25  2:35 ` [Bug debug/23336] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-06-03 22:22 ` pinskia at gcc dot gnu dot org
2006-06-03 22:32 ` aldyh at gcc dot gnu dot org
2006-07-22 18:06 ` drow at gcc dot gnu dot org
2006-07-22 18:34 ` drow at gcc dot gnu dot org
2006-08-01 14:24 ` drow at gcc dot gnu dot org
2006-08-02 13:35 ` [Bug debug/23336] [4.0/4.1 " drow at gcc dot gnu dot org
2007-02-14  9:06 ` mmitchel at gcc dot gnu dot org
2008-01-21 21:46 ` drow at gcc dot gnu dot org
2008-07-04 15:09 ` [Bug debug/23336] [4.1 " jsm28 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).