PR debug/82509
commite9f534b79d38ba851d2651bc24cf15b0fe94deff
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Oct 2017 13:50:10 +0000 (19 13:50 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Oct 2017 13:50:10 +0000 (19 13:50 +0000)
tree51b1717646414039cd001053d3fdd1567f87249a
parentf59996b56aaa1c1d62a16cbb4010775b624cbde0
PR debug/82509
* dwarf2out.c (new_die_raw): New static inline function.
(new_die): Use it to create the DIE.
(add_AT_external_die_ref): Likewise.
(clone_die): Likewise.
(clone_as_declaration): Likewise.
(dwarf2out_vms_debug_main_pointer): Likewise.
(base_type_die): Likewise.  Remove early return for corner cases.
Do not call add_pubtype on the DIE here.
(is_base_type): Remove ERROR_MARK and return 0 for VOID_TYPE.
(modified_type_die): Adjust the lookup for reverse order DIEs.  Skip
typedefs for base types with DW_AT_endianity.  Make sure a DIE with
native order exists for base types, attach the DIE manually and call
add_pubtype on it.  Do not equate a reverse order DIE to the type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253893 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/sso-1.c [moved from gcc/testsuite/gcc.dg/debug/dwarf2/sso.c with 100% similarity]
gcc/testsuite/gcc.dg/debug/dwarf2/sso-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/sso-3.c [new file with mode: 0644]