* doc/extend.texi: Constify first argument to __builtin_object_size.
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 23 Nov 2016 22:05:18 +0000 (22:05 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 23 Nov 2016 22:05:18 +0000 (15:05 -0700)
From-SVN: r242804

gcc/ChangeLog
gcc/doc/extend.texi

index e6f29db..40fec3d 100644 (file)
@@ -1,3 +1,7 @@
+2016-11-23  Jakub Kicinski  <jakub.kicinski@netronome.com>
+
+       * doc/extend.texi: Constify first argument to __builtin_object_size.
+
 2016-11-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        * opth-gen.awk: Use unsigned shifts for bit masks.  Allow all bits
index ca46918..d873403 100644 (file)
@@ -10125,7 +10125,7 @@ follow pointer assignments through non-trivial control flow they rely
 on various optimization passes enabled with @option{-O2}.  However, to
 a limited extent, they can be used without optimization as well.
 
-@deftypefn {Built-in Function} {size_t} __builtin_object_size (void * @var{ptr}, int @var{type})
+@deftypefn {Built-in Function} {size_t} __builtin_object_size (const void * @var{ptr}, int @var{type})
 is a built-in construct that returns a constant number of bytes from
 @var{ptr} to the end of the object @var{ptr} pointer points to
 (if known at compile time).  @code{__builtin_object_size} never evaluates