public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/57369] New: type-less DW_TAG_const_type
@ 2013-05-22 14:00 tromey at gcc dot gnu.org
2014-02-25 11:25 ` [Bug debug/57369] " mark at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: tromey at gcc dot gnu.org @ 2013-05-22 14:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57369
Bug ID: 57369
Summary: type-less DW_TAG_const_type
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: tromey at gcc dot gnu.org
Created attachment 30161
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30161&action=edit
test case
I compiled the attached program with "g++ -g".
I used git g++ from yesterday (ed89150ab33bd05799b31d31424cb50c2dd0b481)
on x86-64 Fedora 18.
The resulting DWARF has a DW_TAG_const_type that does not
have a DW_AT_type attribute. This seems wrong.
<1><245>: Abbrev Number: 16 (DW_TAG_const_type)
<1><246>: Abbrev Number: 17 (DW_TAG_subprogram)
<247> DW_AT_external : 1
[...]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug debug/57369] type-less DW_TAG_const_type
2013-05-22 14:00 [Bug debug/57369] New: type-less DW_TAG_const_type tromey at gcc dot gnu.org
@ 2014-02-25 11:25 ` mark at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: mark at gcc dot gnu.org @ 2014-02-25 11:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57369
Mark Wielaard <mark at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at gcc dot gnu.org
--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> ---
Replicated with GNU C++ 4.9.0 20140219 (experimental)
[ 219] typedef
name (strp) "__compar_fn_t"
decl_file (data1) 5
decl_line (data2) 742
type (ref4) [ 225]
[ 225] pointer_type
byte_size (data1) 8
type (ref4) [ 22b]
[ 22b] subroutine_type
type (ref4) [ 12b]
sibling (ref4) [ 23f]
[ 234] formal_parameter
type (ref4) [ 23f]
[ 239] formal_parameter
type (ref4) [ 23f]
[ 23f] pointer_type
byte_size (data1) 8
type (ref4) [ 245]
[ 245] const_type
The DW_TAG_const_type at 245 doesn't have any attributes.
The typedef is defined in /usr/include/stdlib.h as:
typedef int (*__compar_fn_t) (__const void *, __const void *);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-25 11:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-22 14:00 [Bug debug/57369] New: type-less DW_TAG_const_type tromey at gcc dot gnu.org
2014-02-25 11:25 ` [Bug debug/57369] " mark 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).