From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BB32385800A; Fri, 11 Feb 2022 07:50:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BB32385800A From: "jbeulich at suse dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104497] SEGV during GIMPLE pass: pre Date: Fri, 11 Feb 2022 07:50:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jbeulich at suse 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: 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 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: Fri, 11 Feb 2022 07:50:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104497 --- Comment #1 from jbeulich at suse dot com --- Actually, while trying to determine if there's any kind of workaround for t= he actual code where the prior example was derived from, I found that this can= be further simplified: typedef float __attribute__((mode(SF), vector_size(16))) vec_t; extern vec_t src, inv; void init(vec_t *x, unsigned i) { (*x)[i] =3D (i & 1 ? inv : src)[i]; } Producing a somewhat different stack trace: $ gccver=3D11.2.0-base gccx -Wall -W -Os -msse2 -c simd-test2.c during GIMPLE pass: pre simd-test2.c: In function =E2=80=98init=E2=80=99: simd-test2.c:8:6: internal compiler error: Segmentation fault 8 | void init(vec_t *x, unsigned i) { | ^~~~ 0x877d21a crash_signal /usr/local/src/gcc-11.2.0/gcc/toplev.c:327 0x88d39c5 pre_expr_DFS /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:825 0x88d3e45 sorted_array_from_bitmap_set /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:906 0x88d409f clean /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:2009 0x88da33d compute_antic /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:2519 0x88da33d execute /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:4386=