This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/39779] ICE shifting byte to the right with constant > 7FFFFFFF
- From: "uros at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2009 09:37:39 -0000
- Subject: [Bug rtl-optimization/39779] ICE shifting byte to the right with constant > 7FFFFFFF
- References: <bug-39779-17580@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from uros at gcc dot gnu dot org 2009-09-23 09:37 -------
Subject: Bug 39779
Author: uros
Date: Wed Sep 23 09:37:25 2009
New Revision: 152064
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152064
Log:
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.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr39779.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/c-typeck.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39779