aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@gotplt.org>2022-12-15 11:29:23 -0500
committerSiddhesh Poyarekar <siddhesh@gotplt.org>2022-12-15 12:52:42 -0500
commit7283380a5829150cc820ab3b25c4d91cad372eec (patch)
tree420b81316b294a0124b936ab5d4753e819658928
parentd49b2a3a1dbbe3ac9ae134bc5742be7fdb417d32 (diff)
downloadgcc-7283380a5829150cc820ab3b25c4d91cad372eec.zip
gcc-7283380a5829150cc820ab3b25c4d91cad372eec.tar.gz
gcc-7283380a5829150cc820ab3b25c4d91cad372eec.tar.bz2
middle-end/70090: Document that -fsanitize=object-size uses dynamic size
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>
-rw-r--r--gcc/doc/invoke.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index f48df64..a50417a 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