From 68f8763d57ab6e90f9d78ec0b0e6b71241676a5c Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 25 Feb 2020 13:14:56 -0700 Subject: [PATCH] Correct an attribute access example. gcc/ChangeLog: * doc/extend.texi (attribute access): Correct an example. --- 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 + + * doc/extend.texi (attribute access): Correct an example. + 2020-02-25 Mihail Ionescu * 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 -- 2.30.2