From patchwork Mon Apr 2 23:38:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Sebor X-Patchwork-Id: 894411 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-475713-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="uZu6lgl0"; dkim-atps=neutral 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 40FTFm5D6Xz9s1P for ; Tue, 3 Apr 2018 09:39:04 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=lDlE/SoRhi4BuOrG bGyjzwWlu4zAdRAp4nOcAJYtf/5hkUBaG8xt8+lI2CcgKwW7+ZxDMNQnnVNXpkw+ 2Pp3dMPTYSq7t5yfLOOKeRg5p8u2rW2XtZu5N1KPqO8mntcK0UFtkrqf3fjAfsiO GCxrNHXCBNvY37qM2yQms8qRpAI= 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:to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=OC/RaBtXBYpHmnLJEijrXU iZhUs=; b=uZu6lgl02IpQNNtlxb5bvk6M/0a4r/xpBusIfNGIsWM6dZ2w7PQxax tnYSTvht+kJD4SKnPnOsVDwbvAmXsAO7dk2flZL3W6KYrWA0s18FLD9wy7ZzUvM4 E+h60uIsw2LvEJyLvQKK70NODvKrnAt5zXtHFLPxjyu+zyZuP6Rjk= Received: (qmail 93098 invoked by alias); 2 Apr 2018 23:38:57 -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 92730 invoked by uid 89); 2 Apr 2018 23:38:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-16.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=terminating X-HELO: mail-oi0-f66.google.com Received: from mail-oi0-f66.google.com (HELO mail-oi0-f66.google.com) (209.85.218.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Apr 2018 23:38:55 +0000 Received: by mail-oi0-f66.google.com with SMTP id x9-v6so14346724oig.7 for ; Mon, 02 Apr 2018 16:38:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Ef/7J34W47QB5RZHXXwnDeg2TFLI7mJLEiLJCD386Zg=; b=RkedmL/F1xL4NLmekq4lqCuj0qsAZNlOvCvd1itZix3FnLieLWpSTOOSJCNrbUmyEI M/9ZUfC+xxuW7uz/PNzGVOTIGbE/QTz2jj5bWx9+Uvj/nEpYI+Syn1ZMbPPKEaswD8FJ YiaWI9rYzOyLIjBLcAx+f7E9IYk7RprS18G0aB8rBU1PQQr9BPXd86oJrLW9T5oWKH7M QdQXgPZ4QR917dhotYiTsnjlLFwwxZ/QFnFCAf/V9zWlbN7hv9JPc3NLQfmRppnEKKIL Bl9uA1HfcD4uDM+kRVAeeScPTEVLz1QN+fr8tXtQcyMECVSTVqN9OINcw9VdQVt0NSKl uygA== X-Gm-Message-State: ALQs6tAc3MY532EsEI76sBV1BxjWeY5esOOIPKmO8KDDGztuorVkqmNA 9jfpxE6jpKz574fp39cc6V5TFA== X-Google-Smtp-Source: AIpwx4+fgT1ms/dkVjWZStFEi4e9JvcjzlXVRSp1DkjDdEmGo07/ZZyAFxlLBrkm/5b4uZSeqHHeeg== X-Received: by 2002:aca:aa56:: with SMTP id t83-v6mr6673881oie.113.1522712333194; Mon, 02 Apr 2018 16:38:53 -0700 (PDT) Received: from localhost.localdomain (174-16-100-37.hlrn.qwest.net. [174.16.100.37]) by smtp.gmail.com with ESMTPSA id z51-v6sm1147619otc.25.2018.04.02.16.38.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 16:38:51 -0700 (PDT) To: Gcc Patch List From: Martin Sebor Subject: [committed] fix a couple of typos in manual Message-ID: <02e2e634-de11-3ff6-bf88-85fcd6e32557@gmail.com> Date: Mon, 2 Apr 2018 17:38:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-IsSubscribed: yes I committed r259020 to fix a couple of typos in the documentation of the -Wrestrict option. The diff is below for reference. Martin Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 259019) +++ gcc/doc/invoke.texi (working copy) @@ -6825,13 +6825,16 @@ the call writes the terminating NUL into @code{a[4 the call is diagnosed. @smallexample -struct foo +void foo (void) @{ char a[] = "abcd1234"; strcpy (a, a + 4); -@}; + … +@} @end smallexample -The @option{-Wrestrict} is included in @option{-Wall}. +The @option{-Wrestrict} option detects some instances of simple overlap +even without optimization but works best at @option{-O2}. It is included +in @option{-Wall}. @item -Wnested-externs @r{(C and Objective-C only)} @opindex Wnested-externs Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 259019) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2018-04-02 Martin Sebor + + * doc/invoke.texi (-Wrestrict): Fix typos. + 2018-04-02 Jim Wilson * config/riscv/riscv.h (SHIFT_COUNT_TRUNCATED): Set to zero.