From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFE8F384DB61; Tue, 28 Nov 2023 10:58:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFE8F384DB61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701169101; bh=2zpm3p9UOveN7hfmzUP4VxTCZReQNFvF2CJRIrfnqWI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Xv0g2yNf1orMNX0RuRnoMtf9ZgVa9JiV6B9P3iJZ0BlX3M86FP+Ffza8cWkGj5Aof HxiGB3PB98i7QXu07m74gBiigKDrgkz8iVZj55Xn4baFNHGy0t3pxL0HW6iRFHlGER fOv8AvFbJPZYBe/HRdNyRmCkq+3TCcMod55WhQoM= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/32667] block copy with exact overlap is expanded as memcpy Date: Tue, 28 Nov 2023 10:58:14 +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: rguenther at suse 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 #53 from rguenther at suse dot de --- On Tue, 28 Nov 2023, post+gcc at ralfj dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D32667 >=20 > --- Comment #51 from post+gcc at ralfj dot de --- > Oh great, I love it when one part of the C standard just adds exceptions = to > statements made elsewhere. It's almost as if the authors want this to be = as > hard to understand as possible... >=20 > That then raises the question which version of the signature is actually = used > for building (and optimizing) the function: the one in the declaration or= the > one in the definition. Does the standard have an answer to that? For avoidance of doubt the frontends should drop non-semantic qualifiers from declarations then just in case the middle-end tries to apply semantics there. Like it does for const qualified reference arguments (OK, that's not C but C++). The middle-end also uses the qualifiers for diagnostic purposes.=