[gcc(refs/vendors/ibm/heads/perf)] Correct an attribute access example.
Jiu Fu Guo
guojiufu@gcc.gnu.org
Thu Mar 19 05:52:43 GMT 2020
https://gcc.gnu.org/g:68f8763d57ab6e90f9d78ec0b0e6b71241676a5c
commit 68f8763d57ab6e90f9d78ec0b0e6b71241676a5c
Author: Martin Sebor <msebor@redhat.com>
Date: Tue Feb 25 13:14:56 2020 -0700
Correct an attribute access example.
gcc/ChangeLog:
* doc/extend.texi (attribute access): Correct an example.
Diff:
---
gcc/ChangeLog | 4 ++++
gcc/doc/extend.texi | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 653c276d3fb..0e9c02c02ff 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2020-02-25 Martin Sebor <msebor@redhat.com>
+
+ * doc/extend.texi (attribute access): Correct an example.
+
2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
* config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index b7f462a76b0..007a9a390d7 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2526,7 +2526,7 @@ the @code{puts} function, or the second and third arguments to
the @code{memcpy} function.
@smallexample
-__attribute__ ((access (read_only))) int puts (const char*);
+__attribute__ ((access (read_only, 1))) int puts (const char*);
__attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t);
@end smallexample
More information about the Gcc-cvs
mailing list