From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9BCAE3858D39; Sun, 12 Dec 2021 22:32:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BCAE3858D39 From: "patrick.oppenlander at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 Date: Sun, 12 Dec 2021 22:32:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick.oppenlander at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2021 22:32:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103676 Bug ID: 103676 Summary: internal compiler error: in extract_constrain_insn, at recog.c:2671 Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: patrick.oppenlander at gmail dot com Target Milestone: --- Hi, I'm encountering this internal compiler error with gcc 11.2.0. I'm not quite sure how to provide more information. armv7em-linux-musleabihf-g++ -mcpu=3Dcortex-m7 -mthumb -g -pipe -Wall -O2 -= flto -Wframe-larger-than=3D384 -fno-pie -masm-syntax-unified -mslow-flash-data -Wframe-larger-than=3D384 -Wundef -fno-pie -masm-syntax-unified -mslow-flash-data -nostdinc++ -fno-exceptions -std=3Dgnu++20 -DKERNEL -D_GNU_SOURCE -fuse-linker-plugin -fno-use-cxa-atexit -o apex/sys/apex.elf -T/home/patrick/src/apex-examples/apex/sys/arch/arm/kernel.ld apex/sys/fs/mount.o apex/sys/fs/pipe.o apex/sys/fs/syscalls.o apex/sys/fs/util/dirbuf_add.o apex/sys/fs/vfs.o apex/sys/fs/vnode.o apex/sys/kern/clone.o apex/sys/kern/debug.o apex/sys/kern/dma.o apex/sys/kern/elf_load.o apex/sys/kern/exec.o apex/sys/kern/irq.o apex/sys/kern/main.o apex/sys/kern/prctl.o apex/sys/kern/proc.o apex/sys/kern/sch.o apex/sys/kern/sig.o apex/sys/kern/syscall_table.o apex/sys/kern/syscalls.o apex/sys/kern/syslog.o apex/sys/kern/task.o apex/sys/kern/thread.o apex/sys/kern/timer.o apex/sys/lib/crypto/sha256.o apex/sys/lib/errno.o apex/sys/lib/jhash3.o apex/sys/lib/queue.o apex/sys/lib/raise.o apex/sys/lib/string_utils.o apex/sys/mem/access.o apex/sys/mem/kmem.o apex/sys/mem/page.o apex/sys/mem/vm.o apex/sys/sync/con= d.o apex/sys/sync/futex.o apex/sys/sync/mutex.o apex/sys/sync/rwlock.o apex/sys/sync/semaphore.o apex/sys/sync/spinlock.o apex/sys/mem/untranslate= d.o apex/sys/fs/arfs/vnops.o apex/sys/fs/devfs/vnops.o apex/sys/fs/ramfs/vfsops= .o apex/sys/fs/ramfs/vnops.o apex/sys/dev/arm/armv7m-systick/armv7m-systick.o apex/sys/dev/arm/mps2-uart/early.o apex/sys/dev/arm/mps2-uart/mps2-uart.o apex/sys/dev/bootdisk/bootdisk.o apex/sys/dev/console/console.o apex/sys/dev/null/null.o apex/sys/dev/zero/zero.o apex/sys/dev/tty/tty.o apex/sys/dev/block/device.o apex/sys/arch/arm/v7em/arch.o apex/sys/arch/arm/v7em/atomic.o apex/sys/arch/arm/v7em/cache.o apex/sys/arch/arm/v7em/context.o apex/sys/arch/arm/v7em/emulate.o apex/sys/arch/arm/v7em/exception.o apex/sys/arch/arm/v7em/interrupt.o apex/sys/arch/arm/v7em/io.o apex/sys/arch/arm/v7em/locore.o apex/sys/arch/arm/v7em/syscall.o apex/sys/arch/arm/v7em/mpu.o custom_driver/custom_driver.o apex/machine/qemu/arm/mps2-an500/sys/machine.o apex/libc++/libc++.a apex/libcxxrt/libcxxrt.a apex/libc/libc.a /opt/cross/armv7em-linux-musleabihf/lib/gcc/armv7em-linux-musleabihf/11.2.0= /libgcc.a -Wl,--gc-sections -z max-page-size=3D32 -nostartfiles -nostdlib -static -no= -pie=20 /home/patrick/src/apex-examples/apex/sys/kern/timer.cpp: In function 'timer_callout': /home/patrick/src/apex-examples/apex/sys/kern/timer.cpp:210:1: error: unrecognizable insn: 210 | } | ^ (insn 92 211 102 6 (parallel [ (set (reg:DI 7 r7 [orig:136 tmp ] [136]) (asm_operands/v:DI ("ldrd %Q0, %R0, %1 ") ("=3Dlh") 0 [ (mem/v/c:DI (reg/f:SI 1 r1 [137]) [16 MEM[(const volatile uint64_t *)&monotonic]+0 S8 A64]) ] [ (asm_input:DI ("m") /home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp:24) ] [] /home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp:24)) (clobber (mem:BLK (scratch) [0 A8])) ]) "/home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp":24:2 -1 (nil)) during RTL pass: postreload /home/patrick/src/apex-examples/apex/sys/kern/timer.cpp:210:1: internal compiler error: in extract_constrain_insn, at recog.c:2671 0xff3469 internal_error(char const*, ...) ???:0 0x5d22e2 fancy_abort(char const*, int, char const*) ???:0 0x5d1ded _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x5d1e10 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ???:0 0x8a659a extract_constrain_insn(rtx_insn*) ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: armv7em-linux-musleabihf-g++ returned 1 exit stat= us compilation terminated. /opt/cross/armv7em-linux-musleabihf/bin/../lib/gcc/armv7em-linux-musleabihf= /11.2.0/../../../../armv7em-linux-musleabihf/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status=