OSDN Git Service

PR c/39779
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 2009 06:43:56 +0000 (06:43 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 2009 06:43:56 +0000 (06:43 +0000)
commit9e072631954f2a99c0e65ea3ebb59a9e83594422
tree15e99879c42bf7c05a952c82b854878e4a17c80d
parent21d9004815270f0f4b819229a47eadd5fc692000
PR c/39779
* c-typeck.c (build_binary_op) <short_shift>: Check that integer
constant is more than zero.

testsuite/ChangeLog:

PR c/39779
* gcc.c-torture/compile/pr39779.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152058 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr39779.c [new file with mode: 0644]