re PR c/65830 (-Wno-shift-count-negative -Wno-shift-count-overflow don't work with...
authorMarek Polacek <polacek@redhat.com>
Fri, 24 Apr 2015 11:53:27 +0000 (11:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 24 Apr 2015 11:53:27 +0000 (11:53 +0000)
commit4853031ec832b9fd29e0894016038cc9f83e31cc
tree722f8443b2e54bb8e8d1e525c5679186842f8208
parentb878781346e97ade9087d5c010e29ff09492b6fb
re PR c/65830 (-Wno-shift-count-negative -Wno-shift-count-overflow don't work with const ints)

PR c/65830
* c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
and OPT_Wshift_count_overflow.

* c-c++-common/pr65830.c: New test.

From-SVN: r222407
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr65830.c [new file with mode: 0644]