https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82509
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Thu Oct 19 13:50:10 2017 New Revision: 253893 URL: https://gcc.gnu.org/viewcvs?rev=253893&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.dg/debug/dwarf2/sso-1.c - copied unchanged from r253848, trunk/gcc/testsuite/gcc.dg/debug/dwarf2/sso.c trunk/gcc/testsuite/gcc.dg/debug/dwarf2/sso-2.c trunk/gcc/testsuite/gcc.dg/debug/dwarf2/sso-3.c Removed: trunk/gcc/testsuite/gcc.dg/debug/dwarf2/sso.c Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog