From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE381385842F; Tue, 30 Jan 2024 12:05:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE381385842F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706616336; bh=fJk/RKeaJIdrEKXjrzR0dQuBWZLgZRNbMZchd3mYrjs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=amEWOjb/jCml/i6+n+3bmxTLrflW5Ru//WEbNargFtIPxxl21YuO1jq3Bh50GaB1x 6X4zm/F8KSEkSo2Je01qrWZfhslFp60GjD+C5/I46YN504Ar858P2mX7rHocrsxdKe +hMVd3FcnSDMdf2/TPkYiCP02AI3DWNuz0XT60CQ= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes Date: Tue, 30 Jan 2024 12:05:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: acoplan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_known_to_fail cf_known_to_work version short_desc Message-ID: In-Reply-To: References: 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=3D111677 Alex Coplan changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | Known to fail|13.2.1 |14.0 Known to work|14.0 | Version|13.2.0 |13.2.1 Summary|[12/13 Regression] |[12/13/14 Regression] |darktable build on aarch64 |darktable build on aarch64 |fails with unrecognizable |fails with unrecognizable |insn due to |insn due to |-fstack-protector changes |-fstack-protector changes --- Comment #23 from Alex Coplan --- Discovered by accident while working on a patch for trunk, but adding -funroll-loops to the testcase in #c20 is enough to make the ICE trigger on= the trunk, too. Testing a fix for trunk and a backport to 13 (to start with). To reproduce on the trunk (t.c as in #c20): $ gcc/xgcc -B gcc -c t.c -O3 -ffast-math -fopenmp -fstack-protector-strong -funroll-loops t.c: In function =E2=80=98dt_bilateral_splat.simdclone.1=E2=80=99: t.c:25:1: error: unrecognizable insn: 25 | } | ^ (insn 2182 2181 406 85 (set (mem/c:TF (plus:DI (reg/f:DI 31 sp) (const_int 512 [0x200])) [7 S16 A8]) (reg:TF 55 v23)) -1 (expr_list:REG_DEAD (reg:TF 55 v23) (nil))) during RTL pass: sched_fusion t.c:25:1: internal compiler error: in get_attr_type, at config/aarch64/aarch64.md:29678 0x74a68f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /home/alecop01/toolchain/src/gcc/gcc/rtl-error.cc:108 0x74a6c3 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) /home/alecop01/toolchain/src/gcc/gcc/rtl-error.cc:116 0x18cf03b get_attr_type(rtx_insn*) /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.md:29678 0x13278b7 aarch64_sched_variable_issue /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.cc:15827 0x13278b7 aarch64_sched_variable_issue /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.cc:15818 0x1e25057 schedule_block(basic_block_def**, void*) /home/alecop01/toolchain/src/gcc/gcc/haifa-sched.cc:6912 0xeb307f schedule_region /home/alecop01/toolchain/src/gcc/gcc/sched-rgn.cc:3203 0xeb307f schedule_insns() /home/alecop01/toolchain/src/gcc/gcc/sched-rgn.cc:3525 0xeb34a3 schedule_insns() /home/alecop01/toolchain/src/gcc/gcc/sched-rgn.cc:3511 0xeb34a3 rest_of_handle_sched_fusion /home/alecop01/toolchain/src/gcc/gcc/sched-rgn.cc:3760 0xeb34a3 execute /home/alecop01/toolchain/src/gcc/gcc/sched-rgn.cc:3938 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.=