From 1035527b7836689843c89a9620b043f467344327 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 27 Apr 2017 19:44:25 +0100 Subject: [PATCH] * doc/extend.texi (Object Size Checking): Improve grammar. From-SVN: r247349 --- gcc/ChangeLog | 4 ++++ gcc/doc/extend.texi | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 526a91dc9f6..7463a78bd5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-04-27 Jonathan Wakely + + * doc/extend.texi (Object Size Checking): Improve grammar. + 2017-04-27 Richard Earnshaw PR target/80530 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f7cbe447307..1255995eb78 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.@: -- 2.30.2