https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113382

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> ---
dtd->dtd_enum_unsigned is set in ctf_add_enum:
dtd->dtd_enum_unsigned = eunsigned;

  /* Generate a CTF type for the enumeration.  */
  enumeration_type_id = ctf_add_enum (ctfc, CTF_ADD_ROOT,
                                      enum_name, bit_size / 8,
                                      (signedness == DW_ATE_unsigned),
                                      enumeration);

signedness = 0

(gdb) bt
#0  ctf_add_enum (ctfc=0x800003ffbfea7c00, flag=1,
    name=0x800003ffbfe6b188 "foo", size=4, eunsigned=false,
    die=0x800003ffbfea2320) at ../../gcc/gcc/ctfc.cc:591
#1  0x400000000082df34 in gen_ctf_enumeration_type (
    enumeration=0x800003ffbfea2320, ctfc=0x800003ffbfea7c00)
    at ../../gcc/gcc/dwarf2ctf.cc:762
#2  gen_ctf_type (ctfc=0x800003ffbfea7c00, die=0x800003ffbfea2320)
    at ../../gcc/gcc/dwarf2ctf.cc:899
#3  0x400000000082e8b8 in ctf_do_die (die=0x800003ffbfea2320)
    at ../../gcc/gcc/dwarf2ctf.cc:978
#4  0x400000000088f9b0 in ctf_debug_do_cu (die=<optimized out>)
    at ../../gcc/gcc/dwarf2out.cc:33017
#5  ctf_debug_do_cu (die=<optimized out>) at ../../gcc/gcc/dwarf2out.cc:33010
#6  dwarf2out_early_finish (filename=0x800003ffbfea7c00 "▒\362\004\002")
    at ../../gcc/gcc/dwarf2out.cc:33146
#7  0x40000000007de578 in symbol_table::finalize_compilation_unit (
    this=0x800003ffbfe6b188) at ../../gcc/gcc/cgraphunit.cc:2579
#8  0x4000000000d55338 in compile_file () at ../../gcc/gcc/toplev.cc:474

Reply via email to