diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-04-27 19:44:25 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-04-27 19:44:25 +0100 |
commit | 1035527b7836689843c89a9620b043f467344327 (patch) | |
tree | 4c679cc9f928fbcf7423e6425aa43f5379893787 | |
parent | 8211c4a299da94f1d8c16d176064cbfb5518a630 (diff) | |
download | gcc-1035527b7836689843c89a9620b043f467344327.zip gcc-1035527b7836689843c89a9620b043f467344327.tar.gz gcc-1035527b7836689843c89a9620b043f467344327.tar.bz2 |
* doc/extend.texi (Object Size Checking): Improve grammar.
From-SVN: r247349
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 526a91d..7463a78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-04-27 Jonathan Wakely <jwakely@redhat.com> + + * doc/extend.texi (Object Size Checking): Improve grammar. + 2017-04-27 Richard Earnshaw <rearnsha@arm.com> PR target/80530 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f7cbe44..1255995 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -10209,14 +10209,14 @@ assert (__builtin_object_size (q, 1) == sizeof (var.b)); There are built-in functions added for many common string operation functions, e.g., for @code{memcpy} @code{__builtin___memcpy_chk} built-in is provided. This built-in has an additional last argument, -which is the number of bytes remaining in object the @var{dest} +which is the number of bytes remaining in the object the @var{dest} argument points to or @code{(size_t) -1} if the size is not known. The built-in functions are optimized into the normal string functions like @code{memcpy} if the last argument is @code{(size_t) -1} or if it is known at compile time that the destination object will not -be overflown. If the compiler can determine at compile time the -object will be always overflown, it issues a warning. +be overflowed. If the compiler can determine at compile time that the +object will always be overflowed, it issues a warning. The intended use can be e.g.@: |