diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-26 23:18:14 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-26 23:18:14 +0000 |
commit | a94ca2175201d6aabd23d7fecfc739fc7f307bfc (patch) | |
tree | c288833747703ad1533d198a783c87c3ac5711f2 /gcc/expmed.c | |
parent | fe7266faca0e506a4e90ffd60f03b22c936d0655 (diff) | |
download | gcc-a94ca2175201d6aabd23d7fecfc739fc7f307bfc.tar.gz |
PR middle-end/18008
* c-decl.c (finish_struct): Set DECL_MODE after resetting a
field's type.
* expmed.c (store_fixed_bit_field): Create a paradoxical subreg
if we don't need the bits above those present in the current mode.
* expr.c (store_field): Strip conversions to odd-bit-sized types
if the destination field width matches.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94290 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 1091c454064..084a987fdc0 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -878,7 +878,7 @@ store_fixed_bit_field (rtx op0, unsigned HOST_WIDE_INT offset, if (GET_MODE (value) != mode) { if ((REG_P (value) || GET_CODE (value) == SUBREG) - && GET_MODE_SIZE (mode) < GET_MODE_SIZE (GET_MODE (value))) + && GET_MODE_SIZE (GET_MODE (value)) <= bitsize) value = gen_lowpart (mode, value); else value = convert_to_mode (mode, value, 1); |