extend shift count warnings to vector types
authorJan Beulich <jbeulich@suse.com>
Mon, 1 Aug 2016 09:39:52 +0000 (09:39 +0000)
committerJan Beulich <jbeulich@gcc.gnu.org>
Mon, 1 Aug 2016 09:39:52 +0000 (09:39 +0000)
commit76e2c821a4c49fa870a5af4c24501bb821afda93
treec33699b002f7c68697dd27cd0f86b3ad7e46ea09
parent77c3c27eccd630e2484a7b65a0d2f20d883e1908
extend shift count warnings to vector types

gcc/c/
2016-08-01  Jan Beulich  <jbeulich@suse.com>

* c-fold.c (c_fully_fold_internal): Also emit shift count
warnings for vector types.
* c-typeck.c (build_binary_op): Likewise.

gcc/testsuite/
2016-08-01  Jan Beulich  <jbeulich@suse.com>

* gcc.dg/vshift-6.c, gcc.dg/vshift-7.c: New.

From-SVN: r238936
gcc/c/ChangeLog
gcc/c/c-fold.c
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vshift-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vshift-7.c [new file with mode: 0644]