From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Daniel Le Duc Khoi Nguyen 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 Content-Type: text/plain; charset="UTF-8" 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-List-Received-Date: Sat, 09 Oct 2021 09:59:48 -0000 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(-) 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}. For instance, the following declarations -- 2.25.1 -- Regards, Daniel