Bug 108928 - epiphany-elf: unrecognizable insn (internal compiler error: in extract_insn, at recog.cc:2791) triggered during Modula-2 build
Summary: epiphany-elf: unrecognizable insn (internal compiler error: in extract_insn, ...
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-24 19:32 UTC by Jan-Benedict Glaw
Modified: 2024-01-12 10:07 UTC (History)
0 users

See Also:
Host:
Target: epiphany-elf
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Benedict Glaw 2023-02-24 19:32:03 UTC
Hi!

My automated testing found an issue with --target=epiphany-elf:

.../gcc/configure '--with-pkgversion=basepoints/gcc-13-6140-g63471c50088, built at 1677005096' --prefix=/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-install --enable-werror-always --enable-languages=all --disable-gcov --disable-shared --disable-threads --target=epiphany-elf --without-headers
[...]
make V=1 all-gcc
[...]
[all 2023-02-21 21:50:49] if test "xinfo" = xinfo; then \
[all 2023-02-21 21:50:49]   rm -f doc/gccgo.info*; \
[all 2023-02-21 21:50:49]   makeinfo --split-size=5000000 --no-split -I ../../gcc/gcc/doc \
[all 2023-02-21 21:50:49] 	-I ../../gcc/gcc/doc/include -o doc/gccgo.info ../../gcc/gcc/go/gccgo.texi; \
[all 2023-02-21 21:50:49] else true; fi
[all 2023-02-21 21:50:50] test -d /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs || /bin/bash ../../gcc/gcc/../mkinstalldirs /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs
[all 2023-02-21 21:50:50] echo "GM2_FOR_TARGET /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ "
[all 2023-02-21 21:50:50] GM2_FOR_TARGET /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ 
[all 2023-02-21 21:50:50] echo "GCC_FOR_TARGET /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/xgcc -B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ "
[all 2023-02-21 21:50:50] GCC_FOR_TARGET /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/xgcc -B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ 
[all 2023-02-21 21:50:50] /bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim \
[all 2023-02-21 21:50:50]              ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
[all 2023-02-21 21:50:50]              ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
[all 2023-02-21 21:50:50]              -I../../gcc/gcc/m2/gm2-libs \
[all 2023-02-21 21:50:50]              "/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/gm2 -B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ " /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod: In function 'ShiftVal':
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: error: unrecognizable insn:
[all 2023-02-21 21:50:50]    89 | END ShiftVal ;
[all 2023-02-21 21:50:50]       | ^~~
[all 2023-02-21 21:50:50] (insn 400 342 343 7 (parallel [
[all 2023-02-21 21:50:50]             (set (mem/c:CC (plus:SI (reg/f:SI 11 fp)
[all 2023-02-21 21:50:50]                         (const_int 84 [0x54])) [7 %sfp+-20 S4 A32])
[all 2023-02-21 21:50:50]                 (reg:CC 18 r18))
[all 2023-02-21 21:50:50]             (use (const_int -4337 [0xffffffffffffef0f]))
[all 2023-02-21 21:50:50]             (clobber (scratch:SI))
[all 2023-02-21 21:50:50]         ]) "../../gcc/gcc/m2/gm2-libs/SYSTEM.mod":80:32 discrim 1 -1
[all 2023-02-21 21:50:50]      (nil))
[all 2023-02-21 21:50:50] during RTL pass: reload
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: internal compiler error: in extract_insn, at recog.cc:2791
[all 2023-02-21 21:50:50] 0x670d08 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/rtl-error.cc:108
[all 2023-02-21 21:50:50] 0x670d24 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/rtl-error.cc:116
[all 2023-02-21 21:50:50] 0x66f763 extract_insn(rtx_insn*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/recog.cc:2791
[all 2023-02-21 21:50:50] 0xce5a14 extract_insn_cached(rtx_insn*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/recog.cc:2680
[all 2023-02-21 21:50:50] 0x9fa4a4 cleanup_subreg_operands(rtx_insn*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/final.cc:3054
[all 2023-02-21 21:50:50] 0xd10ff2 reload(rtx_insn*, int)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/reload1.cc:1232
[all 2023-02-21 21:50:50] 0xb97f3e do_reload
[all 2023-02-21 21:50:50] 	../../gcc/gcc/ira.cc:5975
[all 2023-02-21 21:50:50] 0xb97f3e execute
[all 2023-02-21 21:50:50] 	../../gcc/gcc/ira.cc:6149
[all 2023-02-21 21:50:50] Please submit a full bug report, with preprocessed source (by using -freport-bug).
[all 2023-02-21 21:50:50] Please include the complete backtrace with any bug report.
[all 2023-02-21 21:50:50] See <https://gcc.gnu.org/bugs/> for instructions.
[all 2023-02-21 21:50:50] SYSTEM module creates type: LOC
[all 2023-02-21 21:50:50] SYSTEM module creates type: WORD
[all 2023-02-21 21:50:50] SYSTEM module creates type: BYTE
[all 2023-02-21 21:50:50] SYSTEM module creates type: ADDRESS
[all 2023-02-21 21:50:50] SYSTEM module creates type: INTEGER8
[all 2023-02-21 21:50:50] SYSTEM module creates type: INTEGER16
[all 2023-02-21 21:50:50] SYSTEM module creates type: INTEGER32
[all 2023-02-21 21:50:50] SYSTEM module creates type: INTEGER64
[all 2023-02-21 21:50:50] SYSTEM module creates type: CARDINAL8
[all 2023-02-21 21:50:50] SYSTEM module creates type: CARDINAL16
[all 2023-02-21 21:50:50] SYSTEM module creates type: CARDINAL32
[all 2023-02-21 21:50:50] SYSTEM module creates type: CARDINAL64
[all 2023-02-21 21:50:50] SYSTEM module creates type: WORD16
[all 2023-02-21 21:50:50] SYSTEM module creates type: WORD32
[all 2023-02-21 21:50:50] SYSTEM module creates type: WORD64
[all 2023-02-21 21:50:50] SYSTEM module creates type: BITSET8
[all 2023-02-21 21:50:50] SYSTEM module creates type: BITSET16
[all 2023-02-21 21:50:50] SYSTEM module creates type: BITSET32
[all 2023-02-21 21:50:50] SYSTEM module creates type: REAL32
[all 2023-02-21 21:50:50] SYSTEM module creates type: REAL64
[all 2023-02-21 21:50:50] SYSTEM module creates type: COMPLEX32
[all 2023-02-21 21:50:50] SYSTEM module creates type: COMPLEX64
[all 2023-02-21 21:50:50] SYSTEM module creates type: CSIZE_T
[all 2023-02-21 21:50:50] SYSTEM module creates type: CSSIZE_T
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod: In function 'ShiftVal':
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: error: unrecognizable insn:
[all 2023-02-21 21:50:50]    89 | END ShiftVal ;
[all 2023-02-21 21:50:50]       | ^~~
[all 2023-02-21 21:50:50] (insn 400 342 343 7 (parallel [
[all 2023-02-21 21:50:50]             (set (mem/c:CC (plus:SI (reg/f:SI 11 fp)
[all 2023-02-21 21:50:50]                         (const_int 84 [0x54])) [7 %sfp+-20 S4 A32])
[all 2023-02-21 21:50:50]                 (reg:CC 18 r18))
[all 2023-02-21 21:50:50]             (use (const_int -4337 [0xffffffffffffef0f]))
[all 2023-02-21 21:50:50]             (clobber (scratch:SI))
[all 2023-02-21 21:50:50]         ]) "../../gcc/gcc/m2/gm2-libs/SYSTEM.mod":80:32 discrim 1 -1
[all 2023-02-21 21:50:50]      (nil))
[all 2023-02-21 21:50:50] during RTL pass: reload
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: internal compiler error: in extract_insn, at recog.cc:2791
[all 2023-02-21 21:50:50] 0x670d08 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/rtl-error.cc:108
[all 2023-02-21 21:50:50] 0x670d24 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/rtl-error.cc:116
[all 2023-02-21 21:50:50] 0x66f763 extract_insn(rtx_insn*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/recog.cc:2791
[all 2023-02-21 21:50:50] 0xce5a14 extract_insn_cached(rtx_insn*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/recog.cc:2680
[all 2023-02-21 21:50:50] 0x9fa4a4 cleanup_subreg_operands(rtx_insn*)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/final.cc:3054
[all 2023-02-21 21:50:50] 0xd10ff2 reload(rtx_insn*, int)
[all 2023-02-21 21:50:50] 	../../gcc/gcc/reload1.cc:1232
[all 2023-02-21 21:50:50] 0xb97f3e do_reload
[all 2023-02-21 21:50:50] 	../../gcc/gcc/ira.cc:5975
[all 2023-02-21 21:50:50] 0xb97f3e execute
[all 2023-02-21 21:50:50] 	../../gcc/gcc/ira.cc:6149
[all 2023-02-21 21:50:50] Please submit a full bug report, with preprocessed source (by using -freport-bug).
[all 2023-02-21 21:50:50] Please include the complete backtrace with any bug report.
[all 2023-02-21 21:50:50] See <https://gcc.gnu.org/bugs/> for instructions.
[all 2023-02-21 21:50:50] make[1]: *** [../../gcc/gcc/m2/Make-lang.in:1564: /var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def] Error 1
[all 2023-02-21 21:50:50] rm m2/gm2-compiler-boot/P2Build.mod m2/gm2-compiler-boot/P0SyntaxCheck.mod m2/gm2-compiler-boot/PCBuild.mod m2/gm2-compiler-boot/PHBuild.mod m2/gm2-compiler-boot/P1Build.mod m2/gm2-compiler-boot/P3Build.mod
[all 2023-02-21 21:50:50] make[1]: Leaving directory '/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc'
[all 2023-02-21 21:50:50] make: *** [Makefile:4619: all-gcc] Error 2


(Full build log at http://toolchain.lug-owl.de/laminar/log/gcc-epiphany-elf/34)