From: Siddhesh Poyarekar Date: Thu, 15 Dec 2022 16:29:23 +0000 (-0500) Subject: middle-end/70090: Document that -fsanitize=object-size uses dynamic size X-Git-Tag: basepoints/gcc-14~2483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7283380a5829150cc820ab3b25c4d91cad372eec;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f48df64cc2a8..a50417a4ab7e 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