From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2CD13858D37; Thu, 6 Aug 2020 02:40:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2CD13858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596681645; bh=ClBuvwKxq0d2f3kzM8tBSMkXqveDrKf4yfk2o2O8ifY=; h=From:To:Subject:Date:From; b=yxcLCt1hi4SoVHVW3GYM+vvJAm6yvCjIbNBvfHW+bPnj8DVCwDPRuoRxYa65Mnot0 0DBdZx5+vUxoAE5WKLZIbW6Ec8tLCJf6vCs8DbsrXNtvhG4Jin2EiprPyB86VVNSmO uVU2tyFTKAjKSUN6UEUXRFzlSu4q4rBCvo4s9XIE= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96491] New: [11 Regression] ICE: tree check: expected ssa_name, have integer_cst in add_phi_arg, at tree-phinodes.c:373 Date: Thu, 06 Aug 2020 02:40:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.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 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, 06 Aug 2020 02:40:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96491 Bug ID: 96491 Summary: [11 Regression] ICE: tree check: expected ssa_name, have integer_cst in add_phi_arg, at tree-phinodes.c:373 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-11.0.0-alpha20200802 snapshot (g:6e46b3f3da5c03bc529b3690dd0995927feb91= 42) ICEs when compiling the following testcase w/ -O1: int rj; void __attribute__ ((returns_twice)) da (void) { rj =3D 1; } void c5 (void) { for (;;) ++rj; } void ls (int kz) { if (kz =3D=3D 0) { rj =3D 0; c5 (); } da (); c5 (); } % gcc-11.0.0 -O1 -c qqdrbiy8.c during GIMPLE pass: sink qqdrbiy8.c: In function 'ls': qqdrbiy8.c:17:1: internal compiler error: tree check: expected ssa_name, ha= ve integer_cst in add_phi_arg, at tree-phinodes.c:373 17 | ls (int kz) | ^~ 0x707146 tree_check_failed(tree_node const*, char const*, int, char const*, ...) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree.c:9687 0x6be83b tree_check(tree_node*, char const*, int, char const*, tree_code) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree.h:3303 0x6be83b add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree-phinodes.c:373 0xf997e1 sink_common_stores_to_bb =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree-ssa-sink.c:594 0xf997e1 sink_code_in_bb =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree-ssa-sink.c:656 0xf98cea sink_code_in_bb =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree-ssa-sink.c:743 0xf98cea sink_code_in_bb =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree-ssa-sink.c:743 0xf9a5ce execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200802/work/gcc-11-20200802/gc= c/tree-ssa-sink.c:824=