From patchwork Sat Mar 11 17:33:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Bright X-Patchwork-Id: 68137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp378677wrd; Sat, 11 Mar 2023 09:34:37 -0800 (PST) X-Google-Smtp-Source: AK7set/dfjJ2UG+u17ZNWpZkJTHH9yo8kCAbaSYLjFz2S+xn8WTNPo/eNB9IxmZpoG9e8V4MoEmF X-Received: by 2002:a17:907:6d87:b0:8f6:52c:afa0 with SMTP id sb7-20020a1709076d8700b008f6052cafa0mr34774327ejc.23.1678556077058; Sat, 11 Mar 2023 09:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678556077; cv=none; d=google.com; s=arc-20160816; b=Mp7ytOLZMYBDglhgTIu20iOBYXnJ0pIB8NmZ5IoPB7oRNMy8LeYAmhDBtc14eClgyd nrTrKJNgEfJ6+hpYHwJgD935Vi3RTxrDnL70yPCwgZf7X/HWlemQ1jE/3GqYoZORVRS+ Mo0I3LCDJ7UsCTgDhpBoSKYxY6QdrZQWvOJ6fzgGrGCq49RC0rNK8LtiqIfnENRuRrji CHVrKtunqDNFjE9glXU2q7VmLPRWfdIS2GEZrARzREriTCRqewGcgVYj9N0vCeCPTnsr xeq98Uny51gOzBpO/XNiMB2IRwmARccozfui4Z0EElXND7eUQ4BtOgOaWd+iW6sYCr3y 1gww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:feedback-id:references :in-reply-to:message-id:subject:to:date:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=7ngTCw5SWT9VGp3qmIBX7pZXUtYcNASmCtBse8y+4KM=; b=YNLxWs4QSx4sxaHXsFA4+yQGWRc43HcwFVTZzGnK3/xFxrcRMdZnWeXXhK1JeYiRPV 7/VvfNRsCoeIzchVSHdXrzyxAHcOE8ERrB7z5ogSdCS2rlHO1NlnInnKAQbiuUZ6ki+g B2OrVkMDYtZDHy5EtC7RYVlnM1RHC35E5+cYQvSSu2JmGv+ZaV0s3nsdkEAZKK4peqPp vbWWp8SUNUxLCMKBvSsAfzmRF39moZ+EXUotTdamw3iEiHv+DYgnYeUKLCWL+mPmYv/e DL9wHdOQsUDVJqOuA7Lj5e9mANEH4u3/rP8MB1XgBjYkIzO9QKYUKBgoqhedFL5pNSvs qRaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=XxUniebO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bb7-20020a1709070a0700b009229f9e2830si1227489ejc.626.2023.03.11.09.34.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=XxUniebO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D67263858D1E for ; Sat, 11 Mar 2023 17:34:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D67263858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678556075; bh=7ngTCw5SWT9VGp3qmIBX7pZXUtYcNASmCtBse8y+4KM=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=XxUniebOS3l/FzJq0FlEvuvVA4BhQpHY/8P6IbQTCCuYeXhS8Q16Z/jhIj6nLX8Mk Y2m1T5RNWBkIjWq++0fN3hnxyWdNv1R6CWe7xj5En/+o3CcCc81gOY8CCiqQpgRE0r Hi5GfrAb5N7i3zqmBnRBtUx1CVm9LMe68AU5ofzM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by sourceware.org (Postfix) with ESMTPS id AEA5C3858D1E for ; Sat, 11 Mar 2023 17:33:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AEA5C3858D1E Date: Sat, 11 Mar 2023 17:33:46 +0000 To: gcc-patches@gcc.gnu.org Subject: [PATCH] docs: Fix double 'See' in zero-length-bounds docs. Message-ID: In-Reply-To: References: Feedback-ID: 33624412:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sean Bright via Gcc-patches From: Sean Bright Reply-To: Sean Bright Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760093616728147492?= X-GMAIL-MSGID: =?utf-8?q?1760093616728147492?= Hi, This fixes a minor issue where the zero-length-bound docs read "See See Zero Length." gcc/ChangeLog:     * doc/invoke.texi (Warning Options): Remove errant 'See'     before @xref. ---  gcc/doc/invoke.texi | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 3a6a97862b0..174d160dd6c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -8345,7 +8345,7 @@ conversions the warnings @option{-Wno-int-to-pointer-cast} and  @item -Wzero-length-bounds  Warn about accesses to elements of zero-length array members that might  overlap other members of the same object.  Declaring interior zero-length -arrays is discouraged because accesses to them are undefined.  See +arrays is discouraged because accesses to them are undefined.  @xref{Zero Length}.    For example, the first two stores in function @code{bad} are diagnosed