re PR debug/82144 (ICE in add_dwarf_attr with alignas)
authorRichard Biener <rguenther@suse.de>
Mon, 25 Sep 2017 07:25:31 +0000 (07:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 25 Sep 2017 07:25:31 +0000 (07:25 +0000)
2017-09-25  Richard Biener  <rguenther@suse.de>

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
gcc/dwarf2out.c

index b92347e..cc82092 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-25  Richard Biener  <rguenther@suse.de>
+
+       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  <ubizjak@gmail.com>
 
        PR target/82267
index 3609717..dda569f 100644 (file)
@@ -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;