[Bug target/27861] [4.0 regression] ICE in expand_expr_real_1, at expr.c:6916
sayle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 22 03:28:00 GMT 2006
------- Comment #9 from sayle at gcc dot gnu dot org 2006-06-22 01:01 -------
Subject: Bug 27861
Author: sayle
Date: Thu Jun 22 01:01:07 2006
New Revision: 114879
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114879
Log:
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.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr27861-1.c
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/expmed.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27861
More information about the Gcc-bugs
mailing list