From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E27F43858D35; Tue, 3 Oct 2023 07:11:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E27F43858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696317074; bh=aPstZ+QETriBlspAfn9InE4YW38fZpswz9Eof/Vw7+k=; h=From:To:Subject:Date:From; b=ZCPijuAVHgwAK+5JVftJgRQ+Eq3jJAMekC11nWh5LCRNQDhupfwxdb9hx6yiisG8X Gs0dbK72g/OWJOKHPJdUpeO9RuxK0OkV9PXEJ8wjPLm/3eXEVyVTYLpBv/jhds9bGt Nx6pann6hBV4S0SKNSwqW1Jb3x7+OEJkaH74vr7c= From: "shaohua.li at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111671] New: ICE in get_default_value, at tree-ssa-ccp.cc:312 Date: Tue, 03 Oct 2023 07:11:13 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: shaohua.li at inf dot ethz.ch 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111671 Bug ID: 111671 Summary: ICE in get_default_value, at tree-ssa-ccp.cc:312 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: shaohua.li at inf dot ethz.ch CC: aldyh at redhat dot com Target Milestone: --- gcc at -O2/3 crashes. Bisected to r14-2965-gc83528d2367 Compiler explorer: https://godbolt.org/z/MEnY9sYh5 $ cat a.c int a, b, c, d; int e() { if (a) return 0; return -1; } static unsigned f(short); void h() { int g =3D 59258; b =3D -50; g |=3D e() + b; f(g); } unsigned f(short i) { int *j[15], *k[15] =3D {}; j[0] =3D 0; { long l[4]; long m =3D *l, *n[] =3D {&m}; for (; c; c++) d =3D i; int** o[] =3D {k, j}; } } int main() {} $ $ gcc -O2 a.c during GIMPLE pass: ccp a.c: In function =E2=80=98f.isra=E2=80=99: a.c:14:10: internal compiler error: in get_default_value, at tree-ssa-ccp.cc:312 14 | unsigned f(short i) { | ^ 0x7ff11cd60082 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $=