From 7bb4906bdf6cbfbb6cd911b98ddc96cbcdb8c6a8 Mon Sep 17 00:00:00 2001 From: rms Date: Sat, 30 Oct 1993 06:04:18 +0000 Subject: [PATCH] (store_bit_field): When calling operand_subword_force, if VALUE has a non-void mode, pass that mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5939 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/expmed.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/expmed.c b/gcc/expmed.c index 8c6edd8..b340b6d 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; -- 2.7.4