From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6675385DC02; Wed, 1 Apr 2020 15:31:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6675385DC02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585755118; bh=pdWu53tR8eIL0K8pemfM1KuVF6MFKsinlG50bIeK3ok=; h=From:To:Subject:Date:From; b=XSIpbPhlipc1Doo8X5it2SWV2OeEeJUitZWZ7yfnS6k2DD23FBIDWOSMmji4jychQ l8H2VUFiu0G46FOgWX9K7PZt3sZE4QLPfat+Hyvd1OWbBS3tJkp/P9nvWnRwSFRt6o GrAe3quR0V37yIASlxQo0fI8a8tIioO8amegy4qw= From: "felix-gcc at fefe dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94444] New: __attribute__((access(...))) ignored for memcpy when compiling with -Os Date: Wed, 01 Apr 2020 15:31:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: felix-gcc at fefe dot de 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Wed, 01 Apr 2020 15:31:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94444 Bug ID: 94444 Summary: __attribute__((access(...))) ignored for memcpy when compiling with -Os Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: felix-gcc at fefe dot de Target Milestone: --- I read about the access attribute and proceeded to add the annotations to t= he string.h of my little libc. It works. But it stops working when I compile w= ith -Os. I suspect it's because gcc is switching to __buildin_memcpy then?=