public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94444] New: __attribute__((access(...))) ignored for memcpy when compiling with -Os
@ 2020-04-01 15:31 felix-gcc at fefe dot de
  2020-04-01 15:49 ` [Bug c/94444] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: felix-gcc at fefe dot de @ 2020-04-01 15:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94444

            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 the
string.h of my little libc. It works. But it stops working when I compile with
-Os.

I suspect it's because gcc is switching to __buildin_memcpy then?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-01 19:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 15:31 [Bug c/94444] New: __attribute__((access(...))) ignored for memcpy when compiling with -Os felix-gcc at fefe dot de
2020-04-01 15:49 ` [Bug c/94444] " jakub at gcc dot gnu.org
2020-04-01 16:05 ` msebor at gcc dot gnu.org
2020-04-01 17:04 ` rguenth at gcc dot gnu.org
2020-04-01 17:17 ` felix-gcc at fefe dot de
2020-04-01 19:46 ` msebor at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).