From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1909F3858009; Sun, 20 Mar 2022 04:29:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1909F3858009 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/104989] New: ICE in rtl_verify_bb_insns, at cfgrtl.cc:2797 (error: flow control insn inside a basic block) Date: Sun, 20 Mar 2022 04:29:51 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx 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, 20 Mar 2022 04:29:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104989 Bug ID: 104989 Summary: ICE in rtl_verify_bb_insns, at cfgrtl.cc:2797 (error: flow control insn inside a basic block) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++ 12.0.1 20220313 snapshot (g:7e28750395889d16a9cba49cd5935ced7dc00ce8) I= CEs when compiling gcc/testsuite/g++.dg/other/pr84964.C w/ -fnon-call-exception= s: % g++-12.0.1 -fchecking -fnon-call-exceptions -w gcc/testsuite/g++.dg/other/pr84964.C gcc/testsuite/g++.dg/other/pr84964.C: In function 'void c(...)': gcc/testsuite/g++.dg/other/pr84964.C:6:16: sorry, unimplemented: passing too large argument on stack 6 | void c(...) { c(a()); } | ~^~~~~ gcc/testsuite/g++.dg/other/pr84964.C:6:23: error: in basic block 2: 6 | void c(...) { c(a()); } | ^ gcc/testsuite/g++.dg/other/pr84964.C:6:23: error: flow control insn inside a basic block (call_insn 9 8 14 2 (call (mem:QI (symbol_ref:DI ("_Z1cz") [flags 0x3] ) [0 c S1 A8]) (const_int 2305843009213693952 [0x2000000000000000])) "gcc/testsuite/g++.dg/other/pr84964.C":6:16 -1 (expr_list:REG_ARGS_SIZE (const_int 0 [0]) (expr_list:REG_NORETURN (const_int 0 [0]) (nil))) (expr_list (use (reg:QI 0 ax)) (nil))) during RTL pass: expand gcc/testsuite/g++.dg/other/pr84964.C:6:23: internal compiler error: in rtl_verify_bb_insns, at cfgrtl.cc:2797 0x800d85 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/rt= l-error.cc:108 0xcd5ff3 rtl_verify_bb_insns =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= grtl.cc:2797 0xcde38a rtl_verify_flow_info_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= grtl.cc:2883 0xcde38a rtl_verify_flow_info =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= grtl.cc:3126 0xcc456a verify_flow_info() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= ghooks.cc:282 0x1ee7578 checking_verify_flow_info =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= ghooks.h:214 0x1ee7578 try_optimize_cfg =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= gcleanup.cc:2980 0x1ee7578 cleanup_cfg(int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= gcleanup.cc:3143 0xcc1f1f execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/cf= gexpand.cc:6971=