From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18496 invoked by alias); 21 Jun 2006 03:27:47 -0000 Received: (qmail 18467 invoked by alias); 21 Jun 2006 03:27:40 -0000 Date: Wed, 21 Jun 2006 04:04:00 -0000 Message-ID: <20060621032740.18466.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/27861] [4.0/4.1 regression] ICE in expand_expr_real_1, at expr.c:6916 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sayle at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01922.txt.bz2 List-Id: ------- 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