aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/doc/extend.texi2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 653c276..0e9c02c 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 b7f462a..007a9a3 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