From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6EE9C385C33F; Thu, 23 Nov 2023 15:00:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EE9C385C33F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700751643; bh=nBWm/ryYElngHrNKjQG/2QsFP2/0yQ3EAt9OvpduTPA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CSxYKM1Wjxv/jEIY93aYih9JvFQayLVS8U5AFWDBDJOammJlo/WoXMw6mwhCAk2KH O1oiYSmrvHDoaHCtsJJQsl6m1tG2tz9z7YOwtBrTZKP8gw2M5YQhBcYQ+UghUEri/a H/PXrLJStjYosjkeVFMBhY6XIOsMogHihnRkK0a4= From: "public at timruffing dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/32667] block copy with exact overlap is expanded as memcpy Date: Thu, 23 Nov 2023 15:00:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: public at timruffing dot de X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D32667 --- Comment #39 from Tim Ruffing --- (In reply to Rich Felker from comment #36) > Our memcpy is not written in asm but in C, and it has the restrict qualif= ier > on src and dest.=20 For my curiosity, can you point me to this implementation? I couldn't find a memcpy with restrict in the libc source, but I suspect that's just because = I'm not familiar with the code base.=