From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E16B385781D; Mon, 14 Mar 2022 09:49:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E16B385781D From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104910] New: [10/11/12 Regression] ICE: internal consistency failure (error: invalid rtl sharing found in the insn) Date: Mon, 14 Mar 2022 09:49:23 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget attachments.created 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: Mon, 14 Mar 2022 09:49:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104910 Bug ID: 104910 Summary: [10/11/12 Regression] ICE: internal consistency failure (error: invalid rtl sharing found in the insn) Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: aarch64-linux-gnu Created attachment 52621 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52621&action=3Dedit -freport-bug output gcc 12.0.1 20220313 snapshot (g:7e28750395889d16a9cba49cd5935ced7dc00ce8) I= CEs when compiling the following testcase w/ -Os -fstack-protector-all -fno-forward-propagate -fno-PIC: void bar (void); void foo (int x) { if (x) bar (); } % aarch64-linux-gnu-gcc-12.0.1 -Os -fstack-protector-all -fno-forward-propa= gate -fno-PIC -c k1n69laf.c k1n69laf.c: In function 'foo': k1n69laf.c:9:1: error: invalid rtl sharing found in the insn 9 | } | ^ (insn 51 50 10 2 (set (reg/f:DI 100) (lo_sum:DI (reg:DI 101) (const:DI (unspec:DI [ (symbol_ref:DI ("__stack_chk_guard") [flags 0xc0] ) (const_int 1 [0x1]) ] UNSPEC_SALT_ADDR)))) -1 (expr_list:REG_EQUAL (const:DI (unspec:DI [ (symbol_ref:DI ("__stack_chk_guard") [flags 0xc0] ) (const_int 1 [0x1]) ] UNSPEC_SALT_ADDR)) (nil))) k1n69laf.c:9:1: error: shared rtx (const:DI (unspec:DI [ (symbol_ref:DI ("__stack_chk_guard") [flags 0xc0] ) (const_int 1 [0x1]) ] UNSPEC_SALT_ADDR)) during RTL pass: hoist k1n69laf.c:9:1: internal compiler error: internal consistency failure 0xaf3439 verify_rtx_sharing =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/emit-rtl.cc:2898 0xaf335d verify_rtx_sharing =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/emit-rtl.cc:2913 0xaf335d verify_rtx_sharing =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/emit-rtl.cc:2913 0xaf37cf verify_insn_sharing =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/emit-rtl.cc:2984 0xaf883e verify_rtl_sharing() =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/emit-rtl.cc:3007 0xe138f1 execute_function_todo =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/passes.cc:2105 0xe13e4b execute_todo =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-2= 0220313/gcc/passes.cc:2138=