public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/101440] New: Documentation bug for __attribute__ ((access))
@ 2021-07-13 15:56 SztfG at yandex dot ru
0 siblings, 0 replies; only message in thread
From: SztfG at yandex dot ru @ 2021-07-13 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101440
Bug ID: 101440
Summary: Documentation bug for __attribute__ ((access))
Product: gcc
Version: 10.1.0
URL: https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Common-F
unction-Attributes.html
Status: UNCONFIRMED
Keywords: documentation
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: SztfG at yandex dot ru
Target Milestone: ---
>From documentation:
> Examples of the use of the read_only access mode is the argument to the puts function, or the second and third arguments to the memcpy function.
> __attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t);
There is no reference to "third argument in memcpy function". Or I don't
understand something? Maybe there must be
__attribute__ ((access (write_only, 1, 3), access (read_only, 2, 3))) void*
memcpy (void* restrict, const void* restrict, size_t);
so, if we have
void *memcpy(void *dest, const void *src, size_t n);
then this function can write "size_t n" bytes to "void *dest" and read "size_t
n" bytes from "void *src"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-13 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 15:56 [Bug d/101440] New: Documentation bug for __attribute__ ((access)) SztfG at yandex dot ru
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).