From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F1553858D33; Mon, 28 Aug 2023 15:02:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F1553858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693234942; bh=qfc17FhHYyN5MSF7CSH7KW5eTPVznqdiYrCgtc4gRWM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iJR/9/FCjDkAaVt1GenT+xB7j+1djuVHZdlcDC20LBPQmOpWLiiFF0sHKWta0omfS otmblpWTH3Ot8Dhj2wN5kaP7WW0Um7fEZPeCx3xQifOAC3ZJlx/8JmXUM+9+hzU+dc D7WuYNLyR71bGXW60Z9blMT55M3rB56DOr/SxRXE= From: "tg at mirbsd dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111165] [13 regression] builtin strchr miscompiles on Debian/x32 with dietlibc Date: Mon, 28 Aug 2023 15:02:22 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tg at mirbsd dot org 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: 13.3 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=3D111165 --- Comment #13 from Thorsten Glaser --- The interesting part is around the occurrence of=E2=80=A6 # eval.c:399: sp =3D cstrchr(sp, '\0') + 1; =E2=80=A6 in the .s files (it occurs thrice, the first is the beginning of = the setup part, the second and third surround the strlen call, so they=E2=80=99re all= within a bunch of lines).=