From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 800463858C5E; Mon, 4 Dec 2023 14:04:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 800463858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701698694; bh=JDbbA4K9miMiFDUJedqorvBJtFygetU++vPuVg/fon4=; h=From:To:Subject:Date:From; b=keL+KOoHCr5vXXAEOGJ+INXY9MF4y+MzXUr4Cf5B7K9kFp7SGemzY1PBE4hcYqVfM 1UEIxQbzWVdepWzzvIZ87V4KSdC5fAp2Tx900jMTrvxeNtkjCN3oN1AZbOaeq6wG96 1PhDOlUH2tpAaNSrxPBIq06pBVvjA+9h9OKySt90= From: "iamanonymous.cs at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112845] New: ICE: in extract_insn, at recog.cc:2804 with -Os -fcf-protection -c Date: Mon, 04 Dec 2023 14:04:53 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iamanonymous.cs 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112845 Bug ID: 112845 Summary: ICE: in extract_insn, at recog.cc:2804 with -Os -fcf-protection -c Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- ***************************************************************************= **** OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ***************************************************************************= **** gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=3D/root/gcc_set/202311291030/bin/gcc COLLECT_LTO_WRAPPER=3D/root/gcc_set/202311291030/libexec/gcc/x86_64-pc-linu= x-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/root/gcc_set/202311291030 --with-gmp=3D/root/build_essential --with-mpfr=3D/root/build_essential --with-mpc=3D/root/build_essential --enable-languages=3Dc,c++ --disable-mul= tilib --with-sanitizer=3Daddress,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231129 (experimental) (GCC)=20 git version: 99fa0bfd63d97825c4221dcd3123940f1d0e6291 ***************************************************************************= **** Program: $ cat mutant.c #ifdef __x86_64__ #define ENDBR_IMMEDIATE 0xfa1e0ff3 #else #define ENDBR_IMMEDIATE 0xfb1e0ff3 #endif int func (int* p) { return *(p + ENDBR_IMMEDIATE); } ***************************************************************************= **** Command Lines: $ gcc -Os -fcf-protection -c mutant.c mutant.c: In function =E2=80=98func=E2=80=99: mutant.c:11:1: error: unrecognizable insn: 11 | } | ^ (insn 27 7 28 2 (set (reg:DI 0 ax [101]) (const_int 4196274163 [0xfa1e0ff3])) "mutant.c":10:10 discrim 1 -1 (nil)) during RTL pass: cprop_hardreg mutant.c:11:1: internal compiler error: in extract_insn, at recog.cc:2804 0x7e504e _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../gcc/gcc/rtl-error.cc:108 0x7e506a _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ../../gcc/gcc/rtl-error.cc:116 0x7e3572 extract_insn(rtx_insn*) ../../gcc/gcc/recog.cc:2804 0xf7209b extract_constrain_insn(rtx_insn*) ../../gcc/gcc/recog.cc:2703 0xf7b182 copyprop_hardreg_forward_1 ../../gcc/gcc/regcprop.cc:836 0xf7c389 execute ../../gcc/gcc/regcprop.cc:1423 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Also ICE on trunk, compiler explorer: https://godbolt.org/z/d3x5sbG7W=