This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27861] [4.0/4.1 regression] ICE in expand_expr_real_1, at expr.c:6916
- From: "sayle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2006 03:27:40 -0000
- Subject: [Bug target/27861] [4.0/4.1 regression] ICE in expand_expr_real_1, at expr.c:6916
- References: <bug-27861-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from sayle at gcc dot gnu dot org 2006-06-21 03:27 -------
Subject: Bug 27861
Author: sayle
Date: Wed Jun 21 03:27:27 2006
New Revision: 114839
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114839
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_1-branch/gcc/testsuite/gcc.dg/pr27861-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/expmed.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27861