From patchwork Tue Mar 14 15:01:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 738753 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 3vjHy4579Hz9s2G for ; Wed, 15 Mar 2017 02:01:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="DuhiLw/H"; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=rbinq9t2PcducCC0dGRylvtiBZaHOkvItglPWXiw2ERBkidf0W w0TT3xBK2HzX/LMRjPtzhYyx/D+woY23v18ZO7Q7wCKICk2bztiDIljgy3rORAuz X88JzVwYALKkyYvg3GVbDiI6Trb6UFfHaFqUQ/MkVlOM9rU061/wF0bJk= 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; s= default; bh=SP85YDU/K8gBHykUKCJDd5RaOSY=; b=DuhiLw/H1XtaLt1Ddhub +YkoupqHddg+itR82fCkVQwUI5UtiN9eguZIG4sD/ZFXOzvmnMQ3A0yrrJ5jKSOM vWUZ8hiz/pPTTSdd/TDa4H+wBUL8X2pKIQFV12NYqA9x2a91YPr5xsSvA2SI764F vnvuZ0bwMcXU4CqOJzpZFW4= Received: (qmail 101466 invoked by alias); 14 Mar 2017 15:01:39 -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 101454 invoked by uid 89); 14 Mar 2017 15:01:38 -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, SPF_PASS autolearn=ham version=3.3.2 spammy=2657 X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Mar 2017 15:01:36 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 310E6ABB1 for ; Tue, 14 Mar 2017 15:01:35 +0000 (UTC) To: GCC Patches From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH][DOC] Document -Wchkp (PR middle-end/79831). Message-ID: <0e2e5e63-7e8c-07af-7e9b-a319aa00b202@suse.cz> Date: Tue, 14 Mar 2017 16:01:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 X-IsSubscribed: yes Hello. This is small documentation patch that lists and briefly describes -Wchkp. Martin From 553e0c83a1b1efbaff7666f5ab7303e816b958d4 Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 14 Mar 2017 15:41:47 +0100 Subject: [PATCH] Document -Wchkp (PR middle-end/79831). gcc/ChangeLog: 2017-03-14 Martin Liska PR middle-end/79831 * doc/invoke.texi (-Wchkp): Document the option. --- gcc/doc/invoke.texi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2852642516b..04ce03de28c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -265,7 +265,8 @@ Objective-C and Objective-C++ Dialects}. -Wno-builtin-declaration-mismatch @gol -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat @gol -Wc++-compat -Wc++11-compat -Wc++14-compat -Wcast-align -Wcast-qual @gol --Wchar-subscripts -Wclobbered -Wcomment -Wconditionally-supported @gol +-Wchar-subscripts -Wchkp -Wclobbered -Wcomment @gol +-Wconditionally-supported @gol -Wconversion -Wcoverage-mismatch -Wno-cpp -Wdangling-else -Wdate-time @gol -Wdelete-incomplete @gol -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init @gol @@ -3860,6 +3861,11 @@ of error, as programmers often forget that this type is signed on some machines. This warning is enabled by @option{-Wall}. +@item -Wchkp +@opindex Wchkp +Warn about an invalid memory access that is found by Pointer Bounds Checker +(@option{-fcheck-pointer-bounds}). + @item -Wno-coverage-mismatch @opindex Wno-coverage-mismatch Warn if feedback profiles do not match when using the -- 2.11.1