OSDN Git Service

2008-02-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Feb 2008 09:50:04 +0000 (09:50 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Feb 2008 09:50:04 +0000 (09:50 +0000)
commit6295ca724123bcba17754cde6db8280274894197
treeef16ed7af638323b496055d922dbdc8e19ef42aa
parent9af93fe5bf230f989e0d8a18afda2546f10de092
2008-02-27  Richard Guenther  <rguenther@suse.de>

PR middle-end/34971
* expr.c (expand_expr_real_1): Assert on rotates that operate
on partial modes.
* fold-const.c (fold_binary): Use the types precision, not the
bitsize of the mode if folding rotate expressions.  Build rotates
only for full modes.

* gcc.c-torture/execute/pr34971.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132706 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr34971.c [new file with mode: 0644]