On Mon, Jan 02, 2017 at 06:24:43PM +0100, Pierre-Marie de Rodat wrote:
> --- a/gcc/dwarf2out.c
> +++ b/gcc/dwarf2out.c
> @@ -20930,6 +20930,11 @@ gen_enumeration_type_die (tree type, dw_die_ref
> context_die)
> if (ENUM_IS_OPAQUE (type))
> add_AT_flag (type_die, DW_AT_declaration, 1);
> }
> + if (!dwarf_strict)
> + add_AT_unsigned (type_die, DW_AT_encoding,
> + (TYPE_UNSIGNED (type))
Just a formatting nit, TYPE_UNSIGNED (type) doesn't need to be wrapped in
()s. No need to repost.
> + ? DW_ATE_unsigned
> + : DW_ATE_signed);
> }
> else if (! TYPE_SIZE (type))
> return type_die;
Jakub