Message ID | 20221215163340.1802736-1-siddhesh@gotplt.org |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp465194wrn; Thu, 15 Dec 2022 08:34:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KOyK/Udz7mLZ/pC5rL1mNyoFpVZWEjc3OD5wJ26eL6gIStWNfeXYF2Vw/51WqExrKm+Kb X-Received: by 2002:a17:906:ad8b:b0:7c1:994c:f168 with SMTP id la11-20020a170906ad8b00b007c1994cf168mr9500419ejb.54.1671122075178; Thu, 15 Dec 2022 08:34:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671122075; cv=pass; d=google.com; s=arc-20160816; b=b0lLZ420bxHsNZ9xKZY9+GmiDxhHpy/r1n+T4Fq4I5SJecfwkLNZRbhdqgsQclCl/P 6vejt5KRAaYqyx1R2Wm5jg0axBHdEBqnwW04pu9sg5b759iwY3J0rKGYFNt+SfxD3G3L gsC7nadghqCrOrx505LVGWbmu2rolwXG4zrdYEwznWengL53P/M2ib8SrM/5i21ri2Df UBDZz0GpDEryqWYZTMlvwiegu6AH8RFLa9RPmZj2eBz4v9vxX9Gxuo5p3WnbHqTx4MPb PA6s1SLdT6CEd0cApXs67KWtm4Bx1Us0YJHHrRXivXETiOr8f7gXm1xwLRn0aQvK/URO 1duQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=yQuFEhtGUOhwduDrNTKbck7OLvKmJxLWC22lO57JMFY=; b=hR3T7ERG/EeBzhKKLxGcYoHafBfeWzRjl13sN11bunk/HCX5joxYpoYq8mMIzNA/zY 9AlmFDqJcCZajKqw18qcvMlihZ3n0niJY1X3pRiQGsug9MYZxYJ9n7mZtaSShSF1Q798 zC/ZiWqBcJIBPiB4ij4Wz75MgU3Z8FvJRbXAqYkxHmi7RHCjTsyxN5m5oGnZ9sPPGdnv lTHX8G4CiyNXwpXmsavFGAt+65YoM3aqYB1eF3izWTU3Q04lonvq9CCVDLXiMj5jCOgv tz8IjMjCsNc/oFchVjMhHOPTJYkDf3yDThPzgFNTGzuFbpECAIp1WWHUBVEtPFeLZqzH Swcw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gotplt.org header.s=dreamhost header.b=hoFPpvXC; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s6-20020a056402520600b0046c9a4ab650si18442456edd.393.2022.12.15.08.34.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 08:34:35 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gotplt.org header.s=dreamhost header.b=hoFPpvXC; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E00983817762 for <ouuuleilei@gmail.com>; Thu, 15 Dec 2022 16:34:27 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from beige.elm.relay.mailchannels.net (beige.elm.relay.mailchannels.net [23.83.212.16]) by sourceware.org (Postfix) with ESMTPS id 2ED47381ECBF for <gcc-patches@gcc.gnu.org>; Thu, 15 Dec 2022 16:34:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2ED47381ECBF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DDF0A3E0F41 for <gcc-patches@gcc.gnu.org>; Thu, 15 Dec 2022 16:33:59 +0000 (UTC) Received: from pdx1-sub0-mail-a306.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 733AC3E12DF for <gcc-patches@gcc.gnu.org>; Thu, 15 Dec 2022 16:33:59 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1671122039; a=rsa-sha256; cv=none; b=AetjMiLkNblwZUiNL2qGDYrtZc3s6/ZkyDVC1fretIb1lgZNC5Hk3zBfs7JEHV1zHl0diS 01U9p1pJjHRSyDNvGse+LWCRsXFcFKpCCOyLlhPeIir8U9rvTjmoDLPddrtZbsa1WawBBL 1tZGaHcOBwt0ozkc3c9TAZjGS9L31Hon+MlEOuCRwM2qzw3Izfc+iyHd0VHykqs8IIbxf7 tPc/McL80ygpW/UOzOSABK/Ao6WYsTKhuWpHf2ijkiLvcgFDsOR2M0UujRfIe+P715Qqpc cAPDyyOgveLGSbzUWo+f9SctVBRVNGf0jhpPZMQU/QEB+QXqpNY7YeGYnOz/Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1671122039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=yQuFEhtGUOhwduDrNTKbck7OLvKmJxLWC22lO57JMFY=; b=vU6egayCQ8jhVPaYgE6mHqVznPonOqgffCHozuAs1+zOKG/8NZAQdRzM1cbQgP5UXv+93Z Z4sMh7inNnlixVf3KPDvIlb3teKSSbTrTSnmyzgSI0GtdtQy/7SBggU5MlPbQOPAHc9xzL 8bFNQSXP8++wdmI/Nr63OCLafl5PzzPziOvCoyp/vavxl1NdtqV65dpNqimyPX1fwxFJrI 25qE3xptSmNevBbK8KWonifhXF8DxJpL4vTLW01HeRaF98galHlDsaPHTaD+lBf1jih4WY wHlX4qm8LxP6Hy7/ns69iuxJuAkVSWNeuzjwOYYOhqf+k0R6lieiS9eYc0UV/w== ARC-Authentication-Results: i=1; rspamd-747d4f8b9f-5f4lx; auth=pass smtp.auth=dreamhost smtp.mailfrom=siddhesh@gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Wiry-Absorbed: 1c64e79e4aa82479_1671122039690_4264342688 X-MC-Loop-Signature: 1671122039690:3004388941 X-MC-Ingress-Time: 1671122039690 Received: from pdx1-sub0-mail-a306.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.97.74.58 (trex/6.7.1); Thu, 15 Dec 2022 16:33:59 +0000 Received: from fedora.redhat.com (bras-base-toroon4834w-grc-23-76-68-24-147.dsl.bell.ca [76.68.24.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a306.dreamhost.com (Postfix) with ESMTPSA id 4NXyVH05WXzDD for <gcc-patches@gcc.gnu.org>; Thu, 15 Dec 2022 08:33:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gotplt.org; s=dreamhost; t=1671122039; bh=yQuFEhtGUOhwduDrNTKbck7OLvKmJxLWC22lO57JMFY=; h=From:To:Subject:Date:Content-Transfer-Encoding; b=hoFPpvXCZCq5uOIIuP5d+bgeSBj/uwuAU85qW+YDgLyQxmfCgfOuAAbLOsJs35Ev0 p8OcNmiaAP6cVLVBrSmngQBPPjYh6u3JrIRXUrWhJYfE77I+c/wxVWx02W3eZYD9eG +y+Da+wL2L7Mx2gSZytd8lV3gY7188RNYFEyZROvgXI0efLvNKNlUFQ9fjcYxG0xJK jbQcsApT8Dl5BIydSNdvzxrFOoJMmUvJD4RY6ZFefb2j+UrL7ixUFuI/ftFGBJo+Cf vOjiVVB6oJ0NAVFW7d/Xa9TKMk8ydU+V5bxrvwan+SxUDiGtuzpsgAAyd3fzU5HoKs O+sqHxEVsa8zQ== From: Siddhesh Poyarekar <siddhesh@gotplt.org> To: gcc-patches@gcc.gnu.org Subject: [PATCH] middle-end/70090: Document that -fsanitize=object-size uses dynamic size Date: Thu, 15 Dec 2022 11:33:40 -0500 Message-Id: <20221215163340.1802736-1-siddhesh@gotplt.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3037.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752298501581045723?= X-GMAIL-MSGID: =?utf-8?q?1752298501581045723?= |
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
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
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