From: Jakub Kicinski Date: Wed, 23 Nov 2016 22:05:18 +0000 (+0000) Subject: * doc/extend.texi: Constify first argument to __builtin_object_size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03a4ffcd5f21c80b36cf8ad27bb3f3ece00c15b7;p=gcc.git * doc/extend.texi: Constify first argument to __builtin_object_size. From-SVN: r242804 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6f29db082b..40fec3d9cfe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-11-23 Jakub Kicinski + + * doc/extend.texi: Constify first argument to __builtin_object_size. + 2016-11-23 Bernd Edlinger * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index ca469186650..d873403f453 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -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