From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 574923858D1E; Thu, 14 Jul 2022 16:34:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 574923858D1E From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/106303] New: ICE on valid code at -O3 with -fno-inline-small-functions on x86_64-linux-gnu: in extract_insn, at recog.cc:2791 Date: Thu, 14 Jul 2022 16:34:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch 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: Thu, 14 Jul 2022 16:34:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106303 Bug ID: 106303 Summary: ICE on valid code at -O3 with -fno-inline-small-functions on x86_64-linux-gnu: in extract_insn, at recog.cc:2791 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- [557] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/suz-local/software/local/gcc-trunk/libexec/gcc= /x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=3Dc,c++ --disable-werror --enable-multilib --with-system= -zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20220714 (experimental) [master r13-1696-g29f40a8047f] (= GCC) [558] % [558] % gcctk -O3 -fno-inline-small-functions small.c small.c: In function =E2=80=98k=E2=80=99: small.c:17:1: error: unrecognizable insn: 17 | } | ^ (insn 55 58 66 7 (set (reg:V1TI 90 [ D.2002 ]) (mem/c:TI (symbol_ref:DI ("j") [flags 0x2] ) [2 j+0 S16 A128])) -1 (nil)) during RTL pass: subreg3 small.c:17:1: internal compiler error: in extract_insn, at recog.cc:2791 0x722c42 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../gcc-trunk/gcc/rtl-error.cc:108 0x722c5e _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ../../gcc-trunk/gcc/rtl-error.cc:116 0x721191 extract_insn(rtx_insn*) ../../gcc-trunk/gcc/recog.cc:2791 0x1d4e347 decompose_multiword_subregs ../../gcc-trunk/gcc/lower-subreg.cc:1555 0x1d4f1cd execute ../../gcc-trunk/gcc/lower-subreg.cc:1820 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. [559] % [559] % cat small.c struct a { int b; int c; int d; int e; } i, j; int f, g, h; struct a k() { while (f) i =3D j; if (g) { for (; h; h++) i =3D j; return j; } return i; } int main() { k(); return 0; }=