gcc7/gcc7-debug-dwarf2out-ice.patch

33 lines
1020 B
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 244963)
+++ gcc/dwarf2out.c (working copy)
@@ -6154,12 +6154,21 @@ check_die (dw_die_ref die)
between distinct inlined expansions or distinct out-of-line
expansions. */
FOR_EACH_VEC_SAFE_ELT (die->die_attr, ix, a)
- gcc_assert (a->dw_attr != DW_AT_low_pc
- && a->dw_attr != DW_AT_high_pc
- && a->dw_attr != DW_AT_location
- && a->dw_attr != DW_AT_frame_base
- && a->dw_attr != DW_AT_call_all_calls
- && a->dw_attr != DW_AT_GNU_all_call_sites);
+ {
+ if (a->dw_attr != DW_AT_low_pc
+ && a->dw_attr != DW_AT_high_pc
+ && a->dw_attr != DW_AT_location
+ && a->dw_attr != DW_AT_frame_base
+ && a->dw_attr != DW_AT_call_all_calls
+ && a->dw_attr != DW_AT_GNU_all_call_sites)
+ ;
+ else
+ {
+ fprintf (stderr, "Broken inline DIE:\n");
+ debug_dwarf_die (die);
+ gcc_unreachable ();
+ }
+ }
}
}