middle-end/70090: Document that -fsanitize=object-size uses dynamic size
authorSiddhesh Poyarekar <siddhesh@gotplt.org>
Thu, 15 Dec 2022 16:29:23 +0000 (11:29 -0500)
committerSiddhesh Poyarekar <siddhesh@gotplt.org>
Thu, 15 Dec 2022 17:52:42 +0000 (12:52 -0500)
Fix the documentation to say that object sizes are deduced using
__builtin_dynamic_object_size.

gcc/ChangeLog:

PR middle-end/70090
* 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

index f48df64..a50417a 100644 (file)
@@ -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