expr.c (store_field): If BITSIZE is negative, use size of type.
* expr.c (store_field): If BITSIZE is negative, use size of type. (expand_expr, case COMPONENT_EXPR): Likewise. From-SVN: r36588
This commit is contained in:
parent
838f313bbd
commit
bd5dab534b
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
|
* expr.c (store_field): If BITSIZE is negative, use size of type.
|
||||||
|
(expand_expr, case COMPONENT_EXPR): Likewise.
|
||||||
|
|
||||||
Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
|
Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
|
||||||
|
|
||||||
* cpplex.c: Update TODO comment.
|
* cpplex.c: Update TODO comment.
|
||||||
|
|
10
gcc/expr.c
10
gcc/expr.c
|
@ -4992,8 +4992,9 @@ store_field (target, bitsize, bitpos, mode, exp, value_mode,
|
||||||
align >>= 1;
|
align >>= 1;
|
||||||
|
|
||||||
emit_block_move (target, temp,
|
emit_block_move (target, temp,
|
||||||
GEN_INT ((bitsize + BITS_PER_UNIT - 1)
|
bitsize == -1 ? expr_size (exp)
|
||||||
/ BITS_PER_UNIT),
|
: GEN_INT ((bitsize + BITS_PER_UNIT - 1)
|
||||||
|
/ BITS_PER_UNIT),
|
||||||
align);
|
align);
|
||||||
|
|
||||||
return value_mode == VOIDmode ? const0_rtx : target;
|
return value_mode == VOIDmode ? const0_rtx : target;
|
||||||
|
@ -6927,8 +6928,9 @@ expand_expr (exp, target, tmode, modifier)
|
||||||
target = assign_temp (type, 0, 1, 1);
|
target = assign_temp (type, 0, 1, 1);
|
||||||
|
|
||||||
emit_block_move (target, op0,
|
emit_block_move (target, op0,
|
||||||
GEN_INT ((bitsize + BITS_PER_UNIT - 1)
|
bitsize == -1 ? expr_size (exp)
|
||||||
/ BITS_PER_UNIT),
|
: GEN_INT ((bitsize + BITS_PER_UNIT - 1)
|
||||||
|
/ BITS_PER_UNIT),
|
||||||
BITS_PER_UNIT);
|
BITS_PER_UNIT);
|
||||||
|
|
||||||
return target;
|
return target;
|
||||||
|
|
Loading…
Reference in New Issue