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: 66488 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 767833850402 for ; Thu, 16 Mar 2023 22:38:02 +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-Google-Smtp-Source: AK7set/P2hAWQ4opjwSoEDcodcezn7xMsCT9UvUvww0Symv4+kGeSyjK43+OrijyId+E2CrkLjYVVQ== 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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