From 03a4ffcd5f21c80b36cf8ad27bb3f3ece00c15b7 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Wed, 23 Nov 2016 22:05:18 +0000 Subject: [PATCH] * doc/extend.texi: Constify first argument to __builtin_object_size. From-SVN: r242804 --- gcc/ChangeLog | 4 ++++ gcc/doc/extend.texi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6f29db..40fec3d 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 ca46918..d873403 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 -- 2.7.4