From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DDB643858408; Mon, 27 Dec 2021 10:19:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDB643858408 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103845] New: ICE in execute, at gimple-harden-conditionals.cc:552 Date: Mon, 27 Dec 2021 10:19:09 +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: 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 cc 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: Mon, 27 Dec 2021 10:19:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103845 Bug ID: 103845 Summary: ICE in execute, at gimple-harden-conditionals.cc:552 Product: gcc Version: 12.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 CC: aoliva at gcc dot gnu.org Target Milestone: --- gcc 12.0.0 20211226 snapshot (g:d87483015d476a95f521f0c9dcf6988ca889063b) I= CEs when compiling the following testcase w/ -O1 -fharden-compares -fno-ipa-pure-const: int baz (void); __attribute__ ((returns_twice)) void bar (void) { } int quux (int y, int z) { return (y || z >=3D 0) ? y : z; } int foo (int x) { int a =3D 0, b =3D x =3D=3D a; bar (); if (!!baz () < quux (b, a)) ++x; return x; } % gcc-12.0.0 -O1 -fharden-compares -fno-ipa-pure-const -c sys89o7m.c during GIMPLE pass: hardcmp sys89o7m.c: In function 'foo': sys89o7m.c:16:1: internal compiler error: in execute, at gimple-harden-conditionals.cc:552 16 | foo (int x) | ^~~ 0x8122e4 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20211226/work/gcc-12-20211226/gcc/gi= mple-harden-conditionals.cc:552=