https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82144
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|rguenth at gcc dot gnu.org |aoliva at gcc dot gnu.org --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Hmm, we do it twice: static dw_die_ref gen_enumeration_type_die (tree type, dw_die_ref context_die) { ... if (TYPE_SIZE (type)) { tree link; TREE_ASM_WRITTEN (type) = 1; add_byte_size_attribute (type_die, type); add_alignment_attribute (type_die, type); ... } else add_AT_flag (type_die, DW_AT_declaration, 1); add_alignment_attribute (type_die, type); add_pubtype (type, type_die); return type_die; } not sure which one to keep. Alex, this is now yours.