public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jbglaw@lug-owl.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/108928] New: epiphany-elf: unrecognizable insn (internal compiler error: in extract_insn, at recog.cc:2791) triggered during Modula-2 build
Date: Fri, 24 Feb 2023 19:32:03 +0000	[thread overview]
Message-ID: <bug-108928-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 108928
           Summary: epiphany-elf: unrecognizable insn (internal compiler
                    error: in extract_insn, at recog.cc:2791) triggered
                    during Modula-2 build
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbglaw@lug-owl.de
  Target Milestone: ---

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)

             reply	other threads:[~2023-02-24 19:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-24 19:32 jbglaw@lug-owl.de [this message]
2023-03-25 19:17 ` [Bug target/108928] " jbglaw@lug-owl.de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108928-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).