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

            Bug ID: 105938
           Summary: [12 Regression] ICE in get_insn_temp late, at
                    final.cc:2050 on nvptx-none
           Product: gcc
           Version: 12.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

building the nxptx-none offload compiler with the just built gcc-12 from the
branch 20220612 ICEs in:

[...]
2204622: // Thread model: single
2204622: // Supported LTO compression algorithms: zlib zstd
2204622: // gcc version 12.1.0 (GCC) 
2204622: // 
2204622: // during RTL pass: final
2204622: // ../../../src-nvptx/libgcc/libgcc2.c: In function '__multi3':
2204622: // ../../../src-nvptx/libgcc/libgcc2.c:538:1: internal compiler error:
in get_insn_temp
late, at final.cc:2050
2204622: //   538 | }
2204622: //       | ^
2204622: // 0x5b17d5 get_insn_template(int, rtx_insn*)
2204622: //     ../../src-nvptx/gcc/final.cc:2050
2204622: // 0x81f984 final_scan_insn_1
2204622: //     ../../src-nvptx/gcc/final.cc:2827
2204622: // 0x81fe6b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
2204622: //     ../../src-nvptx/gcc/final.cc:2940
2204622: // 0x8200f5 final_1
2204622: //     ../../src-nvptx/gcc/final.cc:1997
2204622: // 0x8208d2 rest_of_handle_final
2204622: //     ../../src-nvptx/gcc/final.cc:4285
2204622: // 0x8208d2 execute
2204622: //     ../../src-nvptx/gcc/final.cc:4363
2204622: // Please submit a full bug report, with preprocessed source (by using
-freport-bug).
2204622: // Please include the complete backtrace with any bug report.
2204622: // See <https://gcc.gnu.org/bugs/> for instructions.
2204622: 
2204622: // /<<PKGBUILDDIR>>/build-nvptx/./gcc/cc1 -quiet -nostdinc -I . -I .
-I ../.././gcc -I 
../../../src-nvptx/libgcc -I ../../../src-nvptx/libgcc/. -I
../../../src-nvptx/libgcc/../gcc -I 
../../../src-nvptx/libgcc/../include -imultilib . -imultiarch x86_64-linux-gnu
-iprefix /<<PKGBU
ILDDIR>>/build-nvptx/gcc/../lib/gcc/x86_64-linux-gnu/12/accel/nvptx-none/
-isystem /<<PKGBUILDDI
R>>/build-nvptx/./gcc/include -isystem
/<<PKGBUILDDIR>>/build-nvptx/./gcc/include-fixed -MD _mul
di3.d -MF _muldi3.dep -MP -MT _muldi3.o -D IN_GCC -D CROSS_DIRECTORY_STRUCTURE
-D IN_LIBGCC2 -D 
inhibit_libc -D HAVE_CC_TLS -D USE_EMUTLS -D L_muldi3 -isystem
/<<PKGBUILDDIR>>/build-nvptx/nvpt
x-none/newlib/targ-include -isystem
/<<PKGBUILDDIR>>/src-nvptx/newlib/libc/include -isystem /usr
/nvptx-none/include -isystem /usr/nvptx-none/sys-include -isystem
/<<PKGBUILDDIR>>/build-nvptx/s
ys-include -isystem ./include ../../../src-nvptx/libgcc/libgcc2.c -quiet
-dumpbase _muldi3.c -du
mpbase-ext .c -g -g -g -O2 -O2 -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wst
rict-prototypes -Wmissing-prototypes -Wold-style-definition -fbuilding-libgcc
-fno-stack-protect
or -o - -frandom-seed=0 -fdump-noaddr
2204622: 
[...]

full build log at
https://buildd.debian.org/status/fetch.php?pkg=gcc-12&arch=amd64&ver=12.1.0-3&stamp=1655064563&raw=0

seen also on powerpc64le-linux-gnu as the host.

Reply via email to