public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/54774] New: insufficient debug info for strong typed enum
@ 2012-10-02 0:39 chihin.ko at oracle dot com
2012-10-02 10:53 ` [Bug debug/54774] " jakub at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: chihin.ko at oracle dot com @ 2012-10-02 0:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Bug #: 54774
Summary: insufficient debug info for strong typed enum
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: chihin.ko@oracle.com
Created attachment 28320
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28320
compileable c++ test case and dwarf dump
For strong typed enum, there is no type information:
#include <iostream>
enum UI: unsigned int
{
None = 0,
Single = 1,
Multiple = 0xFFFF0000U
};
<1><26aa>: Abbrev Number: 69 (DW_TAG_enumeration_type)
DW_AT_name : UI
DW_AT_byte_size : 4
DW_AT_decl_file : 1
DW_AT_decl_line : 3
DW_AT_sibling : <26cc>
Should have a DW_AT_type : <unsigned int type> under DW_TAG_enumeration_type
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
@ 2012-10-02 10:53 ` jakub at gcc dot gnu.org
2012-11-23 14:50 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-02 10:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-02 10:53:11 UTC ---
Guess we'd need to either move ENUM_FIXED_UNDERLYING_TYPE_P bit (and possibly
ENUM_UNDERLYING_TYPE convention) out of the FE to tree.h, or add a langhook
to query that info from the FE (won't work well with LTO though, but there are
tons of things that don't either).
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
2012-10-02 10:53 ` [Bug debug/54774] " jakub at gcc dot gnu.org
@ 2012-11-23 14:50 ` paolo.carlini at oracle dot com
2012-12-06 19:58 ` [Bug debug/54774] [4.4.4, 4.5, 4.6, 4.7] " chihin.ko at oracle dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-23 14:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-23 14:49:24 UTC ---
*** Bug 55447 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] [4.4.4, 4.5, 4.6, 4.7] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
2012-10-02 10:53 ` [Bug debug/54774] " jakub at gcc dot gnu.org
2012-11-23 14:50 ` paolo.carlini at oracle dot com
@ 2012-12-06 19:58 ` chihin.ko at oracle dot com
2012-12-06 20:39 ` [Bug debug/54774] " jakub at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: chihin.ko at oracle dot com @ 2012-12-06 19:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
chihin ko <chihin.ko at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|insufficient debug info for |[4.4.4, 4.5, 4.6, 4.7]
|strong typed enum |insufficient debug info for
| |strong typed enum
--- Comment #3 from chihin ko <chihin.ko at oracle dot com> 2012-12-06 19:57:46 UTC ---
This problem can trace back from gcc 4.4.4.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
` (2 preceding siblings ...)
2012-12-06 19:58 ` [Bug debug/54774] [4.4.4, 4.5, 4.6, 4.7] " chihin.ko at oracle dot com
@ 2012-12-06 20:39 ` jakub at gcc dot gnu.org
2012-12-07 0:11 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-06 20:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.4.4, 4.5, 4.6, 4.7] |insufficient debug info for
|insufficient debug info for |strong typed enum
|strong typed enum |
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-06 20:38:45 UTC ---
But it isn't a regression, so Summary shouldn't be changed for that fact. You
can fill in Known to work: (guess empty) and Known to fail:.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
` (3 preceding siblings ...)
2012-12-06 20:39 ` [Bug debug/54774] " jakub at gcc dot gnu.org
@ 2012-12-07 0:11 ` paolo.carlini at oracle dot com
2014-03-24 14:32 ` mark at gcc dot gnu.org
2014-06-25 18:55 ` tromey at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-07 0:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-12-07
Ever Confirmed|0 |1
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-07 00:11:10 UTC ---
Confirming.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
` (4 preceding siblings ...)
2012-12-07 0:11 ` paolo.carlini at oracle dot com
@ 2014-03-24 14:32 ` mark at gcc dot gnu.org
2014-06-25 18:55 ` tromey at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: mark at gcc dot gnu.org @ 2014-03-24 14:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Mark Wielaard <mark at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at gcc dot gnu.org
--- Comment #6 from Mark Wielaard <mark at gcc dot gnu.org> ---
I think this is a duplicate of PR debug/16063.
With the proposed patch for that applied the debuginfo for the UI enum looks
like:
[ 243e] enumeration_type
name (string) "UI"
byte_size (data1) 4
type (ref4) [ 2463]
decl_file (data1) 1
decl_line (data1) 3
sibling (ref4) [ 2463]
[ 244d] enumerator
name (strp) "None"
const_value (data1) 0
[ 2453] enumerator
name (strp) "Single"
const_value (data1) 1
[ 2459] enumerator
name (strp) "Multiple"
const_value (data4) 4294901760
[ 2463] base_type
byte_size (data1) 4
encoding (data1) unsigned (7)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/54774] insufficient debug info for strong typed enum
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
` (5 preceding siblings ...)
2014-03-24 14:32 ` mark at gcc dot gnu.org
@ 2014-06-25 18:55 ` tromey at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu.org @ 2014-06-25 18:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Tom Tromey <tromey at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |tromey at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #7 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Mark Wielaard from comment #6)
> I think this is a duplicate of PR debug/16063.
I agree.
*** This bug has been marked as a duplicate of bug 16063 ***
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-25 18:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-02 0:39 [Bug debug/54774] New: insufficient debug info for strong typed enum chihin.ko at oracle dot com
2012-10-02 10:53 ` [Bug debug/54774] " jakub at gcc dot gnu.org
2012-11-23 14:50 ` paolo.carlini at oracle dot com
2012-12-06 19:58 ` [Bug debug/54774] [4.4.4, 4.5, 4.6, 4.7] " chihin.ko at oracle dot com
2012-12-06 20:39 ` [Bug debug/54774] " jakub at gcc dot gnu.org
2012-12-07 0:11 ` paolo.carlini at oracle dot com
2014-03-24 14:32 ` mark at gcc dot gnu.org
2014-06-25 18:55 ` tromey at gcc dot gnu.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).