From patchwork Thu Apr 27 18:44:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 756103 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wDQpr43SQz9sNJ for ; Fri, 28 Apr 2017 04:44:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="D2lL3qWi"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=k5HZSg9ZmTg0OGiDBxRIaq1w3EV3knrxLs6Ha8NTuFGhLe6BRP5v3 F5EMPTJLsYZlYz9+ZpCvaTGGyiY3xzkQPtqiZZUU3Lc75U/mJLveEZ5QF53BXTrP htF380j5qdmFcGkCSjaZ+dnLTkB5pWULXLyj2bxlE82/bZNkOf5xX4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=/Rz2jKTXedcXQ+YABmNYBFUVDV0=; b=D2lL3qWizPeWScMeXZ8z VOmUEhPOBn8zw6TEvUfVBXduMEp4SVpEohXEVeWKMmc3dX436uw9R2MA/jXi86fE hGZ9V7IYoA49Q/Q3XhBlQ3a6jE5QB5EWMoiFK2TTDy/zPqOmznDjPO6Pve+uijK2 1drlHkznQl4G+oj2TyYWFsw= Received: (qmail 119124 invoked by alias); 27 Apr 2017 18:44:25 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 118956 invoked by uid 89); 27 Apr 2017 18:44:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1496 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Apr 2017 18:44:19 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 204187937E for ; Thu, 27 Apr 2017 18:44:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 204187937E Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jwakely@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 204187937E Received: from localhost (unknown [10.33.36.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id C676060465 for ; Thu, 27 Apr 2017 18:44:19 +0000 (UTC) Date: Thu, 27 Apr 2017 19:44:19 +0100 From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Subject: [PATCH] doc/extend.texi (Object Size Checking): Improve grammar. Message-ID: <20170427184418.GA22523@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.8.0 (2017-02-23) The main change is s/overflown/overflowed/ but I made a couple of other minor grammatical fixes. Committed to trunk as obvious. commit 6c664e18a926ea60d253001e78fe9e6828416884 Author: Jonathan Wakely Date: Thu Apr 27 19:42:52 2017 +0100 * doc/extend.texi (Object Size Checking): Improve grammar. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f7cbe44..1255995 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -10209,14 +10209,14 @@ assert (__builtin_object_size (q, 1) == sizeof (var.b)); There are built-in functions added for many common string operation functions, e.g., for @code{memcpy} @code{__builtin___memcpy_chk} built-in is provided. This built-in has an additional last argument, -which is the number of bytes remaining in object the @var{dest} +which is the number of bytes remaining in the object the @var{dest} argument points to or @code{(size_t) -1} if the size is not known. The built-in functions are optimized into the normal string functions like @code{memcpy} if the last argument is @code{(size_t) -1} or if it is known at compile time that the destination object will not -be overflown. If the compiler can determine at compile time the -object will be always overflown, it issues a warning. +be overflowed. If the compiler can determine at compile time that the +object will always be overflowed, it issues a warning. The intended use can be e.g.@: