From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 531153853809; Sun, 18 Jul 2021 07:42:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 531153853809 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101496] New: ice during GIMPLE pass: evrp Date: Sun, 18 Jul 2021 07:42:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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, 18 Jul 2021 07:42:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101496 Bug ID: 101496 Summary: ice during GIMPLE pass: evrp Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This C source code: int c_1, li_2, us_3, func_14_s_5; void func_14() { { unsigned uli_8 =3D 0; lbl1806324B: if (uli_8 /=3D us_3 |=3D func_14_s_5 < 0 | func_14_s_5 !=3D c_1) { uli_8 +=3D c_1 >=3D us_3; if (uli_8) ; else li_2 &&func_14_s_5 <=3D c_1 ?: 0; long *ptr_9 =3D &uli_8; } } goto lbl1806324B; } with recent gcc trunk does this: $ /home/dcb/gcc/results/bin/gcc -c -O2 bug736.c 2>&1 | more bug736.c: In function =E2=80=98func_14=E2=80=99: bug736.c:13:21: warning: initialization of =E2=80=98long int *=E2=80=99 fro= m incompatible point er type =E2=80=98unsigned int *=E2=80=99 [-Wincompatible-pointer-types] 13 | long *ptr_9 =3D &uli_8; | ^ during GIMPLE pass: evrp bug736.c:17:1: internal compiler error: in fold_cond, at vr-values.c:3482 17 | } | ^ 0x7d8685 simplify_using_ranges::fold_cond(gcond*) ../../trunk.git/gcc/vr-values.c:3482 0x1334c24 simplify_using_ranges::simplify_cond_using_ranges_1(gcond*) ../../trunk.git/gcc/vr-values.c:3517 0x1160886 substitute_and_fold_dom_walker::before_dom_children(basic_block_d= ef*) ../../trunk.git/gcc/tree-ssa-propagate.c:870 0x1ad3e77 dom_walker::walk(basic_block_def*) ../../trunk.git/gcc/domwalk.c:309 Bug first seems to occur sometime after git hash 42ff474e28fa3c85 but before cca7eb8f7cc157ed.=