From 625f7ba6c350860033934c9a92a57b9377f76d44 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 25 Sep 2017 07:25:31 +0000 Subject: [PATCH] re PR debug/82144 (ICE in add_dwarf_attr with alignas) 2017-09-25 Richard Biener PR middle-end/82144 * dwarf2out.c (gen_enumeration_type_die): Do not add alignment attribute for incomplete types nor twice for complete ones. From-SVN: r253134 --- gcc/ChangeLog | 6 ++++++ gcc/dwarf2out.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b92347e66be..cc82092dc5b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-09-25 Richard Biener + + PR middle-end/82144 + * dwarf2out.c (gen_enumeration_type_die): Do not add alignment + attribute for incomplete types nor twice for complete ones. + 2017-09-24 Uros Bizjak PR target/82267 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 360971765f6..dda569f7862 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -21246,8 +21246,6 @@ gen_enumeration_type_die (tree type, dw_die_ref context_die) else add_AT_flag (type_die, DW_AT_declaration, 1); - add_alignment_attribute (type_die, type); - add_pubtype (type, type_die); return type_die; -- 2.30.2