diff options
author | Richard Stallman <rms@gnu.org> | 1993-10-30 06:04:18 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-10-30 06:04:18 +0000 |
commit | b3487765223b73bf55e7aa72fb15c9c53fe85727 (patch) | |
tree | c4c132382318de75f7b0ec89113c7f8c95979cf7 /gcc/expmed.c | |
parent | 0766f2391794b8999026c8b82ce74043fb018e97 (diff) | |
download | gcc-b3487765223b73bf55e7aa72fb15c9c53fe85727.zip gcc-b3487765223b73bf55e7aa72fb15c9c53fe85727.tar.gz gcc-b3487765223b73bf55e7aa72fb15c9c53fe85727.tar.bz2 |
(store_bit_field): When calling operand_subword_force,
if VALUE has a non-void mode, pass that mode.
From-SVN: r5939
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |