From ea9ea0085603ec807329971f85dbf24e1dd95766 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 25 Sep 2000 00:07:33 -0700 Subject: [PATCH] expmed.c (store_bit_field): Adjust last change to not consider any word-sized field naturally aligned. * expmed.c (store_bit_field): Adjust last change to not consider any word-sized field naturally aligned. From-SVN: r36601 --- gcc/ChangeLog | 5 +++++ gcc/expmed.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d8923e6bc9..ee077ab554a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-09-25 Richard Henderson + + * expmed.c (store_bit_field): Adjust last change to not consider + any word-sized field naturally aligned. + 2000-09-24 Richard Henderson * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle diff --git a/gcc/expmed.c b/gcc/expmed.c index e2ca70a13ab..69761b99165 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -305,12 +305,12 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size) memory, any naturally sized, unit aligned field can be done directly. */ if (bitsize == GET_MODE_BITSIZE (fieldmode) - && (GET_MODE_SIZE (fieldmode) >= UNITS_PER_WORD - || GET_MODE_SIZE (GET_MODE (op0)) == GET_MODE_SIZE (fieldmode) - || (GET_CODE (op0) == MEM - && (! SLOW_UNALIGNED_ACCESS (fieldmode, align) - || (offset * BITS_PER_UNIT % bitsize == 0 - && align % GET_MODE_BITSIZE (fieldmode) == 0)))) + && (GET_CODE (op0) != MEM + ? (GET_MODE_SIZE (fieldmode) >= UNITS_PER_WORD + || GET_MODE_SIZE (GET_MODE (op0)) == GET_MODE_SIZE (fieldmode)) + : (! SLOW_UNALIGNED_ACCESS (fieldmode, align) + || (offset * BITS_PER_UNIT % bitsize == 0 + && align % GET_MODE_BITSIZE (fieldmode) == 0))) && (BYTES_BIG_ENDIAN ? bitpos + bitsize == unit : bitpos == 0)) { if (GET_MODE (op0) != fieldmode)