From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE4463858402; Tue, 24 Oct 2023 12:55:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE4463858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698152126; bh=P8Zjvayrl18COxz+z/YQsKjvt6Jrudx7hNURtcW3TmA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=w21aC9YSY2PQZC56gGVXN46R5BW0fVjXROC7h4YzaXl3ZBjYu9QJ1zmZPePdiL9AU 4lXFI3erxCTocq/xvr0gOZ+/WXjkddOw0fs/oLG9/mqgAgtoPQ7feSMINyFi5aW212 FXJXgtmHuki95dJFE7Rm9TyVj0QfZ/jQBXwFxP4g= From: "costamagnagianfranco at yahoo dot it" 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, 24 Oct 2023 12:55:26 +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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: costamagnagianfranco at yahoo dot it X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 --- Comment #10 from Gianfranco --- $ gcc -O3 -fstack-protector-strong -fopenmp -ffast-math=20 -fexpensive-optimizations testcase.i -c This is the minimal cmdline to trigger the issue I could find. cat testcase.i typedef struct { int width } dt_bilateral_t; typedef dt_aligned_pixel_t[4]; #pragma omp declare simd void dt_bilateral_splat(dt_bilateral_t *b) { int oy =3D b; float *buf; long offsets[8]; for (int slice; slice < b; slice++) { for (int i; i < b->width; i++) { dt_aligned_pixel_t contrib; for (int k =3D 0; k < 4; k++) buf[offsets[k]] +=3D contrib[k]; } float *dest, *src =3D oy; for (int i =3D 0; i < oy; i++) dest[i] +=3D src[i]; } } testcase.i:3:1: warning: no semicolon at end of struct or union 3 | } dt_bilateral_t; | ^ testcase.i:4:9: warning: type defaults to 'int' in declaration of 'dt_aligned_pixel_t' [-Wimplicit-int] 4 | typedef dt_aligned_pixel_t[4]; | ^~~~~~~~~~~~~~~~~~ testcase.i: In function 'dt_bilateral_splat': testcase.i:7:12: warning: initialization of 'int' from 'dt_bilateral_t *' m= akes integer from pointer without a cast [-Wint-conversion] 7 | int oy =3D b; | ^ testcase.i:10:25: warning: comparison between pointer and integer 10 | for (int slice; slice < b; slice++) { | ^ testcase.i:16:25: warning: initialization of 'float *' from 'int' makes poi= nter from integer without a cast [-Wint-conversion] 16 | float *dest, *src =3D oy; | ^~ testcase.i: In function 'dt_bilateral_splat.simdclone.3': testcase.i:20:1: error: unrecognizable insn: 20 | } | ^ (insn 1109 1108 462 62 (set (mem/c:TF (plus:DI (reg/f:DI 31 sp) (const_int 512 [0x200])) [9 S16 A8]) (reg:TF 55 v23)) -1 (expr_list:REG_DEAD (reg:TF 55 v23) (nil))) during RTL pass: sched_fusion testcase.i:20:1: internal compiler error: in get_attr_type, at config/aarch64/aarch64.md:24655 0xb1c083 internal_error(char const*, ...) ???:0 0xb0f58b fancy_abort(char const*, int, char const*) ???:0 0x77453f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x774573 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ???:0 0x1148503 get_attr_type(rtx_insn*) ???:0 0x10f5a2f schedule_block(basic_block_def**, void*) ???:0 0x10cb843 schedule_insns() ???:0 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.=