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

            Bug ID: 113777
           Summary: ICE: in add_child_die_after, at dwarf2out.cc:5785 with
                    -g -fsso-struct=big-endian and
                    __attribute__((__hardbool__))
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 57332
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57332&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -g -fsso-struct=big-endian testcase.c 
testcase.c:5:1: internal compiler error: in add_child_die_after, at
dwarf2out.cc:5785
    5 | };
      | ^
0x746e52 add_child_die_after
        /repo/gcc-trunk/gcc/dwarf2out.cc:5785
0x746e52 add_child_die_after
        /repo/gcc-trunk/gcc/dwarf2out.cc:5782
0x106c42d gen_enumeration_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:22868
0x105399a gen_tagged_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26201
0x105399a gen_type_die_with_usage
        /repo/gcc-trunk/gcc/dwarf2out.cc:26441
0x1056334 gen_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26497
0x1056334 modified_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:13985
0x10573b6 add_type_attribute
        /repo/gcc-trunk/gcc/dwarf2out.cc:22388
0x1053d35 gen_array_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:22655
0x1053d35 gen_type_die_with_usage
        /repo/gcc-trunk/gcc/dwarf2out.cc:26434
0x10505ed gen_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26497
0x10505ed gen_decl_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:27213
0x1052b96 gen_member_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:25949
0x1052b96 gen_struct_or_union_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26045
0x1052b96 gen_tagged_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26247
0x105399a gen_tagged_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26201
0x105399a gen_type_die_with_usage
        /repo/gcc-trunk/gcc/dwarf2out.cc:26441
0x10506e5 gen_type_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:26497
0x10506e5 gen_decl_die
        /repo/gcc-trunk/gcc/dwarf2out.cc:27137
0x10516bb dwarf2out_decl
        /repo/gcc-trunk/gcc/dwarf2out.cc:27695
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-8810-20240205112830-gf1412546ac8-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-8810-20240205112830-gf1412546ac8-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240205 (experimental) (GCC)

Reply via email to