From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA2663858D38; Mon, 28 Aug 2023 14:22:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA2663858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693232566; bh=OH/8mU9J1mcvSrl2XSg/DFAZPrMgbGXOr3Ufl/y0Q48=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GAxlMRoB4K+SsbTAZqkZT/SYIleTadkXg1KmQCakFc4NQh+etr1aIR1tNzMBaWufR c3wLJ1yh8EvVZ9wGug8my8fT2pEYheJn6CkDXAjbg/oJVscl58BAYqn0sELrfhQhdB 0SIJ10dSqmdBOPR3Vnl34o+QvOv0i9y7y/Fd1j6U= 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 14:22:46 +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 #9 from Thorsten Glaser --- > Does providing your own (trivially correct) strlen implementation in a se= parate CU also fix the issue? Even providing one that just calls dietlibc=E2=80=99s (in a separate CU) fi= xes the issue, so I=E2=80=99m very sure it=E2=80=99s not that, but probably some co= degen surrounding the call.=