[PATCH] Fix PR82144
Richard Biener
rguenther@suse.de
Tue Sep 12 13:46:00 GMT 2017
The following avoids adding DW_AT_alignment twice by not doing it
for incomplete types.
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
Alex, is that ok or do we want DW_AT_alignment for incomplete types as
well?
Thanks,
Richard.
2017-09-12 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.
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 252002)
+++ gcc/dwarf2out.c (working copy)
@@ -21258,8 +21258,6 @@ gen_enumeration_type_die (tree type, dw_
else
add_AT_flag (type_die, DW_AT_declaration, 1);
- add_alignment_attribute (type_die, type);
-
add_pubtype (type, type_die);
return type_die;
More information about the Gcc-patches
mailing list