From: Richard Stallman Date: Sat, 30 Oct 1993 06:04:18 +0000 (+0000) Subject: (store_bit_field): When calling operand_subword_force, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3487765223b73bf55e7aa72fb15c9c53fe85727;p=gcc.git (store_bit_field): When calling operand_subword_force, if VALUE has a non-void mode, pass that mode. From-SVN: r5939 --- diff --git a/gcc/expmed.c b/gcc/expmed.c index 8c6edd817ce..b340b6db645 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -319,7 +319,10 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size) store_bit_field (op0, MIN (BITS_PER_WORD, bitsize - i * BITS_PER_WORD), bitnum + bit_offset, word_mode, - operand_subword_force (value, wordnum, fieldmode), + operand_subword_force (value, wordnum, + (GET_MODE (value) == VOIDmode + ? fieldmode + : GET_MODE (value))), align, total_size); } return value;