From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2206) id B7695383A0F2; Thu, 15 Dec 2022 17:53:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7695383A0F2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671126802; bh=noG6eVPGSblL0QOTfUI5QSReBt12fvJM9empT/fcaWM=; h=From:To:Subject:Date:From; b=smTjlnKfy2fKS1acxkDUQdmV0DaFkLoMdMmvatfSKybfvGTYiGcBnn7aYyijMEYsX zZ7MT8aO8E2P6I6wrJDhNulFGrJWutOQ2Xvyv4hQra27yw8x1Q5B5fM97nyX9122+C Xd0V4UT+Qsu2B4D8oSX2Y5+CVfXEYLU1/X5gRk34= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Siddhesh Poyarekar To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4724] middle-end/70090: Document that -fsanitize=object-size uses dynamic size X-Act-Checkin: gcc X-Git-Author: Siddhesh Poyarekar X-Git-Refname: refs/heads/master X-Git-Oldrev: d49b2a3a1dbbe3ac9ae134bc5742be7fdb417d32 X-Git-Newrev: 7283380a5829150cc820ab3b25c4d91cad372eec Message-Id: <20221215175322.B7695383A0F2@sourceware.org> Date: Thu, 15 Dec 2022 17:53:22 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7283380a5829150cc820ab3b25c4d91cad372eec commit r13-4724-g7283380a5829150cc820ab3b25c4d91cad372eec Author: Siddhesh Poyarekar Date: Thu Dec 15 11:29:23 2022 -0500 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: --- gcc/doc/invoke.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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