middle-end/70090: Document that -fsanitize=object-size uses dynamic size

Message ID 20221215163340.1802736-1-siddhesh@gotplt.org
State Accepted
Headers
Series middle-end/70090: Document that -fsanitize=object-size uses dynamic size |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Siddhesh Poyarekar Dec. 15, 2022, 4:33 p.m. UTC
  Fix the documentation to say that object sizes are deduced using
__builtin_dynamic_object_size.

gcc/ChangeLog:

	PR middle-end/70090
	* gcc/doc/invoke.texi (-fsanitize=object-size): Use
	__builtin_dynamic_object_size instead of
	__builtin_object_size.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
---
 gcc/doc/invoke.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Jakub Jelinek Dec. 15, 2022, 4:36 p.m. UTC | #1
On Thu, Dec 15, 2022 at 11:33:40AM -0500, Siddhesh Poyarekar wrote:
> Fix the documentation to say that object sizes are deduced using
> __builtin_dynamic_object_size.
> 
> gcc/ChangeLog:
> 
> 	PR middle-end/70090
> 	* gcc/doc/invoke.texi (-fsanitize=object-size): Use
> 	__builtin_dynamic_object_size instead of
> 	__builtin_object_size.
> 
> Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>

Ok.

	Jakub
  

Patch

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index f48df64cc2a..a50417a4ab7 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -16744,8 +16744,8 @@  or when a method or constructor is invoked on insufficiently aligned object.
 @item -fsanitize=object-size
 @opindex fsanitize=object-size
 This option enables instrumentation of memory references using the
-@code{__builtin_object_size} function.  Various out of bounds pointer
-accesses are detected.
+@code{__builtin_dynamic_object_size} function.  Various out of bounds
+pointer accesses are detected.
 
 @item -fsanitize=float-divide-by-zero
 @opindex fsanitize=float-divide-by-zero