Re: [PATCH] doc: Fix documentation for __builtin_dynamic_object_size

2022-12-15 Thread Jakub Jelinek via Gcc-patches
On Thu, Dec 15, 2022 at 12:21:21PM -0500, Siddhesh Poyarekar wrote: > On 2022-12-15 12:09, Jakub Jelinek wrote: > > > -This is a propagation pass similar to CCP that tries to remove calls > > > -to @code{__builtin_object_size} when the size of the object can be > > > -computed at compile-time. Thi

Re: [PATCH] doc: Fix documentation for __builtin_dynamic_object_size

2022-12-15 Thread Siddhesh Poyarekar
On 2022-12-15 12:09, Jakub Jelinek wrote: -This is a propagation pass similar to CCP that tries to remove calls -to @code{__builtin_object_size} when the size of the object can be -computed at compile-time. This pass is located in -@file{tree-object-size.cc} and is described by +This is a propag

Re: [PATCH] doc: Fix documentation for __builtin_dynamic_object_size

2022-12-15 Thread Jakub Jelinek via Gcc-patches
On Thu, Dec 15, 2022 at 11:58:14AM -0500, Siddhesh Poyarekar wrote: > --- a/gcc/doc/extend.texi > +++ b/gcc/doc/extend.texi > @@ -14291,8 +14291,14 @@ and GCC does not issue a warning. > @end deftypefn > > @deftypefn {Built-in Function}{size_t} __builtin_object_size (const void * > @var{ptr},

[PATCH] doc: Fix documentation for __builtin_dynamic_object_size

2022-12-15 Thread Siddhesh Poyarekar
__builtin_dynamic_object_size is missing from the full list of builtins, so add it. Also mention it alongside __builtin_object_size in the passes description. gcc/ChangeLog: * doc/extend.texi (__builtin_dynamic_object_size): Document builtin. * doc/passes.texi (Op