From 1f09b8d9086a0ce50519de02792793160b53f2ea Mon Sep 17 00:00:00 2001 From: kenner Date: Thu, 30 Mar 2000 14:12:28 +0000 Subject: * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32830 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/expmed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/expmed.c') diff --git a/gcc/expmed.c b/gcc/expmed.c index 07e9e827a8f..79ea3c9afc1 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -646,7 +646,7 @@ store_fixed_bit_field (op0, offset, bitsize, bitpos, value, struct_align) int all_one = 0; if (! SLOW_UNALIGNED_ACCESS (word_mode, struct_align)) - struct_align = BIGGEST_ALIGNMENT / BITS_PER_UNIT; + struct_align = BIGGEST_ALIGNMENT; /* There is a case not handled here: a structure with a known alignment of just a halfword @@ -674,7 +674,7 @@ store_fixed_bit_field (op0, offset, bitsize, bitpos, value, struct_align) a word, we won't be doing the extraction the normal way. */ mode = get_best_mode (bitsize, bitpos + offset * BITS_PER_UNIT, - struct_align * BITS_PER_UNIT, word_mode, + struct_align, word_mode, GET_CODE (op0) == MEM && MEM_VOLATILE_P (op0)); if (mode == VOIDmode) -- cgit v1.2.1