diff options
author | Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com> | 2021-10-12 10:52:35 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2021-10-12 10:53:23 -0400 |
commit | 8226f6383a347371490897dba0383a7bc7082374 (patch) | |
tree | 8e3209c286e0436f3acd927f00f458fd44f64dc3 /gcc | |
parent | 98c0ac7e0d6d0051600a629122fc845e96c78427 (diff) | |
download | gcc-8226f6383a347371490897dba0383a7bc7082374.zip gcc-8226f6383a347371490897dba0383a7bc7082374.tar.gz gcc-8226f6383a347371490897dba0383a7bc7082374.tar.bz2 |
doc: Fix typos in alloc_size documentation
gcc/
* doc/extend.texi (Common Variable Attributes): Fix typos in
alloc_size documentation.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/extend.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 133b82e..10d466f 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7359,10 +7359,10 @@ The @code{warn_if_not_aligned} attribute can also be used for types The @code{alloc_size} variable attribute may be applied to the declaration of a pointer to a function that returns a pointer and takes at least one argument of an integer type. It indicates that the returned pointer points -to an object whose size is given by the function argument at @var{position-1}, +to an object whose size is given by the function argument at @var{position}, or by the product of the arguments at @var{position-1} and @var{position-2}. Meaningful sizes are positive values less than @code{PTRDIFF_MAX}. Other -sizes are disagnosed when detected. GCC uses this information to improve +sizes are diagnosed when detected. GCC uses this information to improve the results of @code{__builtin_object_size}. For instance, the following declarations |