]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/39779 (ICE shifting byte to the right with constant > 7FFFFFFF)
authorUros Bizjak <ubizjak@gmail.com>
Wed, 23 Sep 2009 10:18:46 +0000 (12:18 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 23 Sep 2009 10:18:46 +0000 (12:18 +0200)
commit6284b63a80bf660350d58be398702741d43ba14f
tree94c716b9dde88b625b88ec1e99e4d2546d69ecfd
parent7536dfca250b39d02252c705477796a5e6d5bd7e
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: r152066
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr39779.c [new file with mode: 0644]