]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/39779 (ICE shifting byte to the right with constant > 7FFFFFFF)
authorUros Bizjak <uros@gcc.gnu.org>
Wed, 23 Sep 2009 06:43:56 +0000 (08:43 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 23 Sep 2009 06:43:56 +0000 (08:43 +0200)
commitbe12343976ff4b516eb80c983d9ad613ff9a2593
tree15e99879c42bf7c05a952c82b854878e4a17c80d
parentd57c0139831d98f97ee0ea892b5cf4e728ecf508
re PR c/39779 (ICE shifting byte to the right with constant > 7FFFFFFF)

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.

From-SVN: r152058
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr39779.c [new file with mode: 0644]