diff mbox

[DOC] Document -Wchkp (PR middle-end/79831).

Message ID 0e2e5e63-7e8c-07af-7e9b-a319aa00b202@suse.cz
State New
Headers show

Commit Message

Martin Liška March 14, 2017, 3:01 p.m. UTC
Hello.

This is small documentation patch that lists and briefly describes -Wchkp.

Martin

Comments

Jeff Law March 14, 2017, 3:23 p.m. UTC | #1
On 03/14/2017 09:01 AM, Martin Liška wrote:
> Hello.
>
> This is small documentation patch that lists and briefly describes -Wchkp.
OK.
jeff
diff mbox

Patch

From 553e0c83a1b1efbaff7666f5ab7303e816b958d4 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Tue, 14 Mar 2017 15:41:47 +0100
Subject: [PATCH] Document -Wchkp (PR middle-end/79831).

gcc/ChangeLog:

2017-03-14  Martin Liska  <mliska@suse.cz>

	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