]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/27861 (ICE in expand_expr_real_1, at expr.c:6916)
authorRoger Sayle <roger@eyesopen.com>
Thu, 22 Jun 2006 01:01:07 +0000 (01:01 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 22 Jun 2006 01:01:07 +0000 (01:01 +0000)
commit20940faeea4e5738983a5653eb84bd7bb1fc00f9
tree858528d25aff768a14736b6c6686f327438b4128
parent7ed7f4edb12132144d4866cbdf37211664454528
re PR target/27861 (ICE in expand_expr_real_1, at expr.c:6916)

PR target/27861
* expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
have stripped a SUBREG from the shift count, so we may need to
convert_to_mode back to the type's mode before calling make_tree.
Use new_amount instead of amount to avoid expanding a tree twice.

* gcc.dg/pr27861-1.c: New test case.

From-SVN: r114879
gcc/ChangeLog
gcc/expmed.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr27861-1.c [new file with mode: 0644]