From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A7E5385840F; Mon, 5 Aug 2024 13:14:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A7E5385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1722863673; bh=LyffQrNo6+8mCmJZEtVzvY8bxX+QtfD8SpRYQ9ScnrE=; h=From:To:Subject:Date:From; b=cU/rbQ0Hxqed1NSL7m2rKCi5L69KlWzWaSgdCECN8DVYrY7aW2BQMiN3/MB/SZO7M YD1U4sW6LUfeADfvl5UIwUro0PbYBfPf0rWlcTTH/jXsm7Cc8/Z9RAu/G3XVYfbMc/ XmFe3oyBIY0odfqgyQTfB+ubAPHQNw/A7EothVKU= From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/116238] New: [15 Regression] ICE building 526.blender_r on aarch64 SVE after 3b9b8d6cfdf59337f4b7ce10ce92a98044b2657b Date: Mon, 05 Aug 2024 13:14:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: aarch64-sve, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D116238 Bug ID: 116238 Summary: [15 Regression] ICE building 526.blender_r on aarch64 SVE after 3b9b8d6cfdf59337f4b7ce10ce92a98044b2657b Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: aarch64-sve, ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org Target Milestone: --- I see 526.blender_r from SPEC2017 ICEing when building with -Ofast -mcpu=3Dneoverse-v2 -msve-vector-bits=3D128 -flto=3Dauto. Unfortunately the -flto is necessary to reproduce it. I've reduced it to 3 small files that should be enough to reproduce it: $ cat main.c void a(); void main() { a(); } $ cat foo.c void a(); typedef struct { char b, c; } d; typedef struct { d bezt; } e; typedef struct { int f; } g; e *h, *j; void i(g *k, e **l) { *l =3D &h[k->f]; } void BKE_mask_calc_handle_point_auto(g *k, e *l) { float m, n =3D m / 2.0f; char o =3D l->bezt.c, p =3D l->bezt.b; i(k, &j); d *q =3D &j->bezt; if (q) a(); l->bezt.b =3D p; l->bezt.c =3D o; a(n); } $ cat bar.c void BKE_mask_calc_handle_point_auto(); int a() { int b; BKE_mask_calc_handle_point_auto(b); } Compile for aarch64 with: gcc -Ofast -msve-vector-bits=3D128 -mcpu=3Dneoverse-v2 main.c foo.c bar.c -= flto and the crash is: during RTL pass: reload bar.c: In function 'a.isra': bar.c:5:1: internal compiler error: maximum number of generated reload insns per insn achieved (90) 5 | } | ^ 0x1fe090b internal_error(char const*, ...) $SRC/gcc/diagnostic-global-context.cc:491 0xbff0c3 lra_constraints(bool) $SRC/gcc/lra-constraints.cc:5402 0xbe52ff lra(_IO_FILE*, int) $SRC/gcc/lra.cc:2442 0xb9919b do_reload $SRC/gcc/ira.cc:5973 0xb9919b execute $SRC/gcc/ira.cc:6161 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. lto-wrapper: fatal error: /home/ktkachov/builds/gcc-trunk/bin/gcc returned 1 exit status compilation terminated. /home/ktkachov/builds/binutils-trunk/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status I've bisected it to the commit g:3b9b8d6cfdf59337f4b7ce10ce92a98044b2657b b= ut I don't know if that is the cause or uncovered a latent problem=