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

            Bug ID: 120722
           Summary: [16 Regression][gcn] ICE in gen_highpart, at
                    emit-rtl.cc:1674 since r16-1565-g2dcc6dbd8a00ca when
                    building libgcc/strub.c for gfx1036
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: ams at gcc dot gnu.org, dimitar at gcc dot gnu.org,
                    pinskia at gcc dot gnu.org, rsandifo at gcc dot gnu.org
  Target Milestone: ---
            Target: gcn

Commit r16-1565-g2dcc6dbd8a00ca,
   emit-rtl: Use simplify_subreg_regno to validate hardware subregs [PR119966]

causes a GCN bootstrap fail when building libgcc/strub.c for gfx1036:


/home/tob/projects/build-gcc-trunk-offload-amdgcn/./gcc/xgcc
-B/home/tob/projects/build-gcc-trunk-offload-amdgcn/./gcc/ -nostdinc
-B/home/tob/projects/build-gcc-trunk-offload-amdgcn/amdgcn-amdhsa/gfx1036/newlib/
-isystem
/home/tob/projects/build-gcc-trunk-offload-amdgcn/amdgcn-amdhsa/gfx1036/newlib/targ-include
-isystem /home/tob/repos/gcc/newlib/libc/include
-B/home/tob/projects/gcc-trunk-offload/amdgcn-amdhsa/bin/
-B/home/tob/projects/gcc-trunk-offload/amdgcn-amdhsa/lib/gfx1036
-B/home/tob/projects/gcc-trunk-offload/amdgcn-amdhsa/lib/ -isystem
/home/tob/projects/gcc-trunk-offload/amdgcn-amdhsa/include -isystem
/home/tob/projects/gcc-trunk-offload/amdgcn-amdhsa/sys-include  -march=gfx1036
-g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g0
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -I. -I.
-I../../.././gcc -I/home/tob/repos/gcc/libgcc -I/home/tob/repos/gcc/libgcc/.
-I/home/tob/repos/gcc/libgcc/../gcc -I/home/tob/repos/gcc/libgcc/../include    
-o strub.o -MT strub.o -MD -MP -MF strub.dep  -c
/home/tob/repos/gcc/libgcc/strub.c -fvisibility=hidden -DHIDE_EXPORTS


during RTL pass: split2
/home/tob/repos/gcc/libgcc/strub.c: In function ‘__strub_leave’:
/home/tob/repos/gcc/libgcc/strub.c:153:1: internal compiler error: in
gen_highpart, at emit-rtl.cc:1674
  153 | }
      | ^
0x20ce51f internal_error(char const*, ...)
        /home/tob/repos/gcc/gcc/diagnostic-global-context.cc:517
0x9dccc1 fancy_abort(char const*, int, char const*)
        /home/tob/repos/gcc/gcc/diagnostic.cc:1803
0x7fd574 gen_highpart(machine_mode, rtx_def*)
        /home/tob/repos/gcc/gcc/emit-rtl.cc:1674
0x1d10804 gen_split_9(rtx_insn*, rtx_def**)
        /home/tob/repos/gcc/gcc/config/gcn/gcn.md:680
0xc9e84b try_split(rtx_def*, rtx_insn*, int)
        /home/tob/repos/gcc/gcc/emit-rtl.cc:3961
0x10b1c15 split_insn
        /home/tob/repos/gcc/gcc/recog.cc:3479
0x10b7547 split_all_insns()
        /home/tob/repos/gcc/gcc/recog.cc:3583
0x10b75f8 execute
        /home/tob/repos/gcc/gcc/recog.cc:4507
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.
make: *** [/home/tob/repos/gcc/libgcc/static-object.mk:17: strub.o] Error 1

Reply via email to