From patchwork Sat Oct 9 09:59:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Le Duc Khoi Nguyen X-Patchwork-Id: 46031 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 404033858411 for ; Sat, 9 Oct 2021 10:00:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 404033858411 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1633773616; bh=PorhBGsxVvAxetd4FhiPxZqB6KPYMbGQ+xs2HyFXD3Y=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=MEQ5G9iO8m8rCTW2tt/uBSrRnATvWiLI+Fd2mXB2HU3H1ctiu5FvpVAtdERnfx9+L H8N28uvL00IIGgR4YCatWadwHxGGJkDBJ1gYOX/Z/1q7vnXvcZMtfeInYwmYl1Ltc8 4X+5hOg4awC2Sw0q8bSJbN9ye/hXpQuldiDzwC90= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by sourceware.org (Postfix) with ESMTPS id D2E8C3858405 for ; Sat, 9 Oct 2021 09:59:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D2E8C3858405 Received: by mail-oi1-x22c.google.com with SMTP id n64so17119245oih.2 for ; Sat, 09 Oct 2021 02:59:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PorhBGsxVvAxetd4FhiPxZqB6KPYMbGQ+xs2HyFXD3Y=; b=MadGpOZYOZa57nX5FrhouGJwgd6dj+wLpoUJ063RDvVi1mZkwUpUThstpUhi9sEJhU 2BIi6+HTxRf+yq4DAJZdPaMfShnTlQqX4exVnC767WCyc6oZ13yPkfmcL7+Jw9ZZfbs6 UUkTAgODybgeLqu5V2JbdVwYLKPqEPLAA/guQdsZR5CXD7L2HGDHOioZsiMjm3VKzGfm qQXgZn3+4B4yMKdzv26IakXW9mNWmq1er1Lfge2LFDZ/YW5mxLF/IZejsWPHgdKVjCBE AVXq5Qs2Vs2reJRTsif/wKDzEVFBWMff9Guy3eI4vkze0uROIUEwcI/i4m62CT/Vvax+ DJng== X-Gm-Message-State: AOAM533UmvTiuLUawco8ipxvgP0ANguA8VcSVG0epsugxTyF6iKwheLI FoDrTF63LZ3E6IjhTIy9UzrhXK+wO0sIiMNTwQVCFyOk35Y= X-Google-Smtp-Source: ABdhPJwvAYyaxjbirGyMKvfY89jA8ty6KGfw9IdBAn2n07+/Upvr5dkNv9icIQ7+vddJppKe+d2H1gMRyIZbOGoWPUY= X-Received: by 2002:a05:6808:318:: with SMTP id i24mr20199936oie.60.1633773584112; Sat, 09 Oct 2021 02:59:44 -0700 (PDT) MIME-Version: 1.0 Date: Sat, 9 Oct 2021 17:59:33 +0800 Message-ID: Subject: [PATCH] doc: Fix typos in alloc_size documentation To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Daniel Le Duc Khoi Nguyen via Gcc-patches From: Daniel Le Duc Khoi Nguyen Reply-To: Daniel Le Duc Khoi Nguyen Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 2021-10-09 Daniel Le * doc/extend.texi (Common Variable Attributes): Fix typos in alloc_size documentation. --- gcc/doc/extend.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) For instance, the following declarations diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 133b82eef38..10d466fae9a 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7359,10 +7359,10 @@ The @code{warn_if_not_aligned} attribute can also be used for types The @code{alloc_size} variable attribute may be applied to the declaration of a pointer to a function that returns a pointer and takes at least one argument of an integer type. It indicates that the returned pointer points -to an object whose size is given by the function argument at @var{position-1}, +to an object whose size is given by the function argument at @var{position}, or by the product of the arguments at @var{position-1} and @var{position-2}. Meaningful sizes are positive values less than @code{PTRDIFF_MAX}. Other -sizes are disagnosed when detected. GCC uses this information to improve +sizes are diagnosed when detected. GCC uses this information to improve the results of @code{__builtin_object_size}.