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?