From patchwork Tue Jun 16 09:21:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Forrest Timour X-Patchwork-Id: 1310150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=KxxE172M; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49mN4x217Hz9sR4 for ; Tue, 16 Jun 2020 19:22:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2AE7C383F85E; Tue, 16 Jun 2020 09:22:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AE7C383F85E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592299323; bh=5Qe2HWSAtysHYzviZiowaDxRBfs+guWSJrj41OrT644=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=KxxE172MTv6vCGz3qaPgQ1FlKBFxGi4SzRLe1dSt0bWcT510bndzy/kCIXQdUTD4e 5DGOJhcXiHmPMBBSjMhVY3R/C+3njVlbGdP863zW4DTUEfMH5tVuXpyk2hzvt/1ZzE Bvh9vTisee+thWaa3JaEDD5k4KnNrV4a1tAag6lI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 3557C386F82A for ; Tue, 16 Jun 2020 09:22:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3557C386F82A Received: by mail-ot1-x332.google.com with SMTP id m2so15392099otr.12 for ; Tue, 16 Jun 2020 02:22:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1GdUaPmmiFl/QjFGAnCxw0OTBfPdu0AQP3lT9EDiLHk=; b=jaMNQNhOVF9oYXU4z/WeLiNFHxrPBlrF/ZbQzI0mGJ+Mv7042Wqyrvqb/DRd/ado6o fXNg4jEWg7kEQtp+X4b7EDsahDbZBbnsR7lfezYyzsymg+ZkLZBEBWLh3tF45I4BLGPY 8EhMpD3pDsIfpAdA0cA3Fbs2DshL8q61m+ojO831XzGJM6DElh0JUGXWST0cCXutnjeS xkAVR7cqoatLZclKsNmXkmnxOf0JzL7NU45Hql0tREnK6Sks/aIpxLng8wQVDygTqRdP jR07+kbJAgr7yU9tc2hrXAg7SJMufAnaQ/7ovzE1jLV+W3mm72SCBXlP9Ogp+t9W47kf vK9Q== X-Gm-Message-State: AOAM532/CRGkkMOWnKvycQQmQX/lE0zRc/pCBMJKQpfDoqJWqSCCcXYt hT9omlhrqk3+S2QksvjqRQvYeKlDNmWmo7lprxK0xZDX X-Google-Smtp-Source: ABdhPJw/pWl/5lFqjcPV/Sa5Ic2uKAQqp8jxjHMfEfp76wHr9sAGFtzO0hyl+0gXon/s1OB5YQPXhNvkEtTNUm7h6/8= X-Received: by 2002:a05:6830:2159:: with SMTP id r25mr551491otd.151.1592299319283; Tue, 16 Jun 2020 02:21:59 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 16 Jun 2020 02:21:48 -0700 Message-ID: Subject: [PATCH][documentation] Fix typo in access function attribute example To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Forrest Timour via Gcc-patches From: Forrest Timour Reply-To: Forrest Timour Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi, This patch fixes an off-by-one typo in the documentation example of the access function attribute. This is my first contribution and I don't have write access, so I will need somebody to submit for me on approval. Thanks, Forrest ------------------------------------------------------- Fix typo in documentation example of access function attribute where the ref-indices should be one-indexed instead of zero-indexed 2020-06-16 Forrest Timour gcc/ChangeLog: * doc/extend.texi: --- 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 e656e66a80c..10dc32e6d2d 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -2527,7 +2527,7 @@ the @code{memcpy} function. @smallexample __attribute__ ((access (read_only, 1))) int puts (const char*); -__attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t); +__attribute__ ((access (read_only, 2, 3))) void* memcpy (void*, const void*, size_t); @end smallexample The @code{read_write} access mode applies to arguments of pointer types