Commit e98fc6de by Richard Sandiford Committed by Richard Sandiford

re PR middle-end/55403 (ICE building libitm)

gcc/
	PR middle-end/55403
	PR middle-end/55391
	* expmed.c (store_bit_field_1): Use adjust_bitfield_address_size
	rather than adjust_bitfield_address to change the mode of a reference.
	(extract_bit_field_1): Likewise.

From-SVN: r193674
parent 96ceaa37
2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
PR middle-end/55403
PR middle-end/55391
* expmed.c (store_bit_field_1): Use adjust_bitfield_address_size
rather than adjust_bitfield_address to change the mode of a reference.
(extract_bit_field_1): Likewise.
2012-11-20 Michael Meissner <meissner@linux.vnet.ibm.com> 2012-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
* config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
...@@ -645,7 +645,7 @@ store_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize, ...@@ -645,7 +645,7 @@ store_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
if (imode != GET_MODE (op0)) if (imode != GET_MODE (op0))
{ {
if (MEM_P (op0)) if (MEM_P (op0))
op0 = adjust_bitfield_address (op0, imode, 0); op0 = adjust_bitfield_address_size (op0, imode, 0, MEM_SIZE (op0));
else else
{ {
gcc_assert (imode != BLKmode); gcc_assert (imode != BLKmode);
...@@ -1380,7 +1380,7 @@ extract_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize, ...@@ -1380,7 +1380,7 @@ extract_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
if (imode != GET_MODE (op0)) if (imode != GET_MODE (op0))
{ {
if (MEM_P (op0)) if (MEM_P (op0))
op0 = adjust_bitfield_address (op0, imode, 0); op0 = adjust_bitfield_address_size (op0, imode, 0, MEM_SIZE (op0));
else if (imode != BLKmode) else if (imode != BLKmode)
{ {
op0 = gen_lowpart (imode, op0); op0 = gen_lowpart (imode, op0);
...@@ -1403,10 +1403,10 @@ extract_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize, ...@@ -1403,10 +1403,10 @@ extract_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
} }
else else
{ {
rtx mem = assign_stack_temp (GET_MODE (op0), HOST_WIDE_INT size = GET_MODE_SIZE (GET_MODE (op0));
GET_MODE_SIZE (GET_MODE (op0))); rtx mem = assign_stack_temp (GET_MODE (op0), size);
emit_move_insn (mem, op0); emit_move_insn (mem, op0);
op0 = adjust_bitfield_address (mem, BLKmode, 0); op0 = adjust_bitfield_address_size (mem, BLKmode, 0, size);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment