invoke.texi ([-Wshift-count-negative, [...]): Add.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 10 Nov 2014 20:14:41 +0000 (20:14 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 10 Nov 2014 20:14:41 +0000 (20:14 +0000)
commit13c216556de997e8bda737d18a41ebe61bce1d79
treea319274155607b59e6fd0d9bad41edc6a68b2038
parentde2b09ec2fac5fbbc0490f2768237f97261361ce
invoke.texi ([-Wshift-count-negative, [...]): Add.

2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

* doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
Add.

/c-family
2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

* c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.

/cp
2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

* typeck.c (cp_build_binary_op): Use OPT_Wshift_count_negative and
OPT_Wshift_count_overflow in the warnings.

/c
2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

* c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
OPT_Wshift_count_overflow in the warnings.

/testsuite
2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

* c-c++-common/Wshift-count-overflow-1.c: New.
* c-c++-common/Wshift-count-overflow-2.c: Likewise.
* c-c++-common/Wshift-count-negative-1.c: Likewise.
* c-c++-common/Wshift-count-negative-2.c: Likewise.

From-SVN: r217313
13 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wshift-count-negative-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wshift-count-negative-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wshift-count-overflow-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wshift-count-overflow-2.c [new file with mode: 0644]