* expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
From-SVN: r32830
This commit is contained in:
parent
bdb429a5a1
commit
2b968770d7
@ -1,5 +1,7 @@
|
|||||||
Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
|
* expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
|
||||||
|
|
||||||
* calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
|
* calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
|
||||||
* explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
|
* explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
|
||||||
* function.c (assign_parms): Likewise.
|
* function.c (assign_parms): Likewise.
|
||||||
|
@ -646,7 +646,7 @@ store_fixed_bit_field (op0, offset, bitsize, bitpos, value, struct_align)
|
|||||||
int all_one = 0;
|
int all_one = 0;
|
||||||
|
|
||||||
if (! SLOW_UNALIGNED_ACCESS (word_mode, struct_align))
|
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:
|
/* There is a case not handled here:
|
||||||
a structure with a known alignment of just a halfword
|
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. */
|
a word, we won't be doing the extraction the normal way. */
|
||||||
|
|
||||||
mode = get_best_mode (bitsize, bitpos + offset * BITS_PER_UNIT,
|
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));
|
GET_CODE (op0) == MEM && MEM_VOLATILE_P (op0));
|
||||||
|
|
||||||
if (mode == VOIDmode)
|
if (mode == VOIDmode)
|
||||||
|
Loading…
Reference in New Issue
Block a user