From 022b97b5f8ff5e64dffbd33a63c5dd4a175628ee Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 22 Mar 2017 13:31:29 +0100 Subject: [PATCH] Backport r246129 2017-03-22 Martin Liska Backport from mainline 2017-03-14 Martin Liska PR middle-end/79831 * doc/invoke.texi (-Wchkp): Document the option. From-SVN: r246375 --- gcc/ChangeLog | 8 ++++++++ gcc/doc/invoke.texi | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d01e9342aab9..b87fe8a7e459 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-03-22 Martin Liska + + Backport from mainline + 2017-03-14 Martin Liska + + PR middle-end/79831 + * doc/invoke.texi (-Wchkp): Document the option. + 2017-03-22 Martin Liska Backport from mainline diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 1ca4dcc32212..05a042100025 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -245,7 +245,7 @@ Objective-C and Objective-C++ Dialects}. -Wno-attributes -Wno-builtin-macro-redefined @gol -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 -Wconditionally-supported @gol -Wconversion -Wcoverage-mismatch -Wdate-time -Wdelete-incomplete -Wno-cpp @gol -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init @gol -Wdisabled-optimization @gol @@ -3538,6 +3538,11 @@ Warn whenever a comment-start sequence @samp{/*} appears in a @samp{/*} comment, or whenever a Backslash-Newline appears in a @samp{//} comment. 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.47.2