From: Alan Modra Date: Tue, 22 Nov 2005 13:16:29 +0000 (+0000) Subject: re PR middle-end/24950 (ICE in operand_subword_force) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30f37b8d0c2ba1ca093520765f8f3fb4b82ab900;p=gcc.git re PR middle-end/24950 (ICE in operand_subword_force) PR middle-end/24950 * expmed.c (store_bit_field): Don't attempt to insv a field larger than the reg. From-SVN: r107354 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bc604e36cb..c4ee188ca1a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-11-22 Alan Modra + + PR middle-end/24950 + * expmed.c (store_bit_field): Don't attempt to insv a field + larger than the reg. + 2005-11-22 Alan Modra PR target/24954 diff --git a/gcc/expmed.c b/gcc/expmed.c index 58f179eacdc..d591b6bc7c2 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -643,6 +643,7 @@ store_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize, bestmode = GET_MODE (op0); if (bestmode == VOIDmode + || GET_MODE_SIZE (bestmode) < GET_MODE_SIZE (fieldmode) || (SLOW_UNALIGNED_ACCESS (bestmode, MEM_ALIGN (op0)) && GET_MODE_BITSIZE (bestmode) > MEM_ALIGN (op0))) goto insv_loses;