From patchwork Thu Mar 16 22:37:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonny Grant X-Patchwork-Id: 71001 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp30952wrt; Thu, 16 Mar 2023 15:38:30 -0700 (PDT) X-Google-Smtp-Source: AK7set851L2+uBuQ7QkTs8FncHiijZfVTTTusY68WxDVyNEKi+ayCV0CU0Mg2ZPXQdrOI/0OGSu/ X-Received: by 2002:a17:907:a4c1:b0:930:fa8e:9597 with SMTP id vq1-20020a170907a4c100b00930fa8e9597mr2763272ejc.42.1679006310539; Thu, 16 Mar 2023 15:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679006310; cv=none; d=google.com; s=arc-20160816; b=t5M+z81A8WEDkMC95aBlFwkMN812KqhMe3otQAKPp+EXKmgCXUWo9uU84Mdoo5O2bE ZYm0+fk2HgbodAhNBX5OOCO4rVkstOlih0Ben/ac0YDZQon0hbX6MHSIBTpZwyz4/Ijj yK2lppxrDktbiMZO8GR9pKDvoEgbcHKsAQk9t5FYyJCEh43VlzE3Beny/Ag3a9tn5jrK 4VEGmIAcVpSIyXOGaBCqWh4SbjiydI4Wk3ry5DkJX7WNI8c/DLhu8hZsiRFQuixxudZj 57/JK5MJoql5/wwI7sJAt1HjKq15xpPzu2DvRwBO9zFUtvAH20o77tbWFvxUrH7azoi0 +6LQ== ARC-Message-Signature: i=1; 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:to :subject:from:content-language:user-agent:mime-version:date :message-id:dkim-signature:dmarc-filter:delivered-to; bh=OuR7ZwMiKF025zSU2KENqo7Or6OKxeZB8NfH5sqqLdA=; b=aZL63cIaUx/pJZeEu/O2syty+2pzE5VtcsltL/uEAh/JTDBSmrNxFR6Fzh0fdMeZcL VswyGPa62oc0QSqzwsiGyWayd2l5SMhEiCUJ0qzZ0hcNw9f8P47vrmbwRr+HGffCzo2d V4GVDrPH3R1D+/c5En9lV2oxxrI6SUOkrNK7CqyBYpHn6fPwsRQea7rm/xJc4F6dS3Ex 7zoedKG+b9G4Y8+xWKmGBpbgGb9OJXK6K8KS/YdBJanXy5Jn7jVUGICLC/z1yg5KVwvy y09EMQpej/wppdBN7oyEQCMvsKUlIO6t/RTfjz88xD7nKy6XlvvHA2Vn+XOf/Uat1116 BDQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jguk.org header.s=google header.b=KwyIzBfq; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bk16-20020a170906b0d000b00926738ca7a8si434500ejb.391.2023.03.16.15.38.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 15:38:30 -0700 (PDT) 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=@jguk.org header.s=google header.b=KwyIzBfq; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF68438515FF for ; Thu, 16 Mar 2023 22:38:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id AA0F938555A0 for ; Thu, 16 Mar 2023 22:37:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA0F938555A0 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=jguk.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jguk.org Received: by mail-wm1-x330.google.com with SMTP id c8-20020a05600c0ac800b003ed2f97a63eso4088087wmr.3 for ; Thu, 16 Mar 2023 15:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jguk.org; s=google; t=1679006262; h=content-transfer-encoding:to:subject:from:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=OuR7ZwMiKF025zSU2KENqo7Or6OKxeZB8NfH5sqqLdA=; b=KwyIzBfqW/HYsI5wma7zQO3YHxuu6QOTRDnE59HqS7QfXgjNlN0Bpvs66m0yBUMsV/ LmY6EeH/zBganpjY9CD6OyAtYi3iExWGvF4WMK18Q8a8fOxjcV1bhgRetn+3B38bD0te 88Av/lHgZ0LKW3CMcBkUYLeksJLNsclO76iA3v2MlyPlATdngGJzhCVxBORZGeDWX/S2 rTrYXKvAceYBQI8bylpSxEKLd7CLMBb4h3d1K+Bdar71IeMGQzku+iJwcZ8pFrV//Mt7 EipMJdmIOvkC/HD6ony6s3WBs69YeQ7FVSBEnuOk947Gowhd43XoB+I68BWpt+ilAOiT bjpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679006262; h=content-transfer-encoding:to:subject:from:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=OuR7ZwMiKF025zSU2KENqo7Or6OKxeZB8NfH5sqqLdA=; b=KJ8cXWGfPy8uB4ptloqn0A6mjVMJTuWt0QRmsbC4rudIobinLdTXU3TmyIgvwO5wJT k9RMwXfkazVViNfGueZx15UAq67DIs/QKDUdd2B0x0uDmv8ZwU88YBOSSuWYQk9frhNy xuETT71KaLSHm1novfl6hjCqdIKeeXhwTvHtQDhB1W3aIPmycQDXGXQZ+d7pjL/WTVTG h26FG4mHkAr2QDVQMedS2Buke4AjAxc8Chh3xAyHpYPe+4kHDuXcy/r3eFE1N97uBDt/ uXV340j7L8fyAMKl83q8CobSvBNIkoTkebdc3QzUkd9O8bW1DlDO5QNH+0CWkzCWsXN1 Bseg== X-Gm-Message-State: AO0yUKVW0WIRWdvzpHufuDDLvUGFbcWWzuXULTDUi1jbRz9JtqDgz0xt MD+nW4Uv/s+123qa+16LEwkhMeBEFB+NqIwFCp4= X-Received: by 2002:a05:600c:1908:b0:3ed:413e:591 with SMTP id j8-20020a05600c190800b003ed413e0591mr5032312wmq.5.1679006262409; Thu, 16 Mar 2023 15:37:42 -0700 (PDT) Received: from [192.168.0.12] (cpc87345-slou4-2-0-cust172.17-4.cable.virginm.net. [81.101.252.173]) by smtp.gmail.com with ESMTPSA id m23-20020a056000181700b002c5694aef92sm482726wrh.21.2023.03.16.15.37.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 15:37:42 -0700 (PDT) Message-ID: <640effa5-e1d6-94fe-cb8f-978d8a94f931@jguk.org> Date: Thu, 16 Mar 2023 22:37:41 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-GB From: Jonny Grant Subject: [PATCH] correct function attribute typo To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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?1760565721292646275?= X-GMAIL-MSGID: =?utf-8?q?1760565721292646275?= Hello There's a typo in the common function attribute docs, "nonnul" which this patch corrects. https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes gcc/ChangeLog 2023-03-16 Jonny Grant * doc/extend.texi: correct function attribute typo --- gcc/doc/extend.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index e0c5357291b..91dfdef4461 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3657,7 +3657,7 @@ marked with nonnull is compared with null, and @option{-Wnonnull-compare} option is enabled, a warning is issued. @xref{Warning Options}. @item The compiler may also perform optimizations based on the -knowledge that @code{nonnul} parameters cannot be null. This can +knowledge that @code{nonnull} parameters cannot be null. This can currently not be disabled other than by removing the nonnull attribute. @end itemize