Commit 5621a843 by Andrew Pinski Committed by Andrew Pinski

mips.c (mips_get_unaligned_mem): Copy *op after calling adjust_address.

2012-07-21  Andrew Pinski  <apinski@cavium.com>

	* config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
	adjust_address.

From-SVN: r189738
parent 3622ef30
2012-07-21 Andrew Pinski <apinski@cavium.com>
* config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
adjust_address.
2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com> 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/mips/mips.md (define_attr sync_*): Move before "type". * config/mips/mips.md (define_attr sync_*): Move before "type".
......
...@@ -7217,9 +7217,10 @@ mips_get_unaligned_mem (rtx *op, HOST_WIDE_INT width, HOST_WIDE_INT bitpos, ...@@ -7217,9 +7217,10 @@ mips_get_unaligned_mem (rtx *op, HOST_WIDE_INT width, HOST_WIDE_INT bitpos,
if (MEM_ALIGN (*op) >= width) if (MEM_ALIGN (*op) >= width)
return false; return false;
/* Adjust *OP to refer to the whole field. This also has the effect /* Create a copy of *OP that refers to the whole field. This also has
of legitimizing *OP's address for BLKmode, possibly simplifying it. */ the effect of legitimizing *OP's address for BLKmode, possibly
*op = adjust_address (*op, BLKmode, 0); simplifying it. */
*op = copy_rtx (adjust_address (*op, BLKmode, 0));
set_mem_size (*op, width / BITS_PER_UNIT); set_mem_size (*op, width / BITS_PER_UNIT);
/* Get references to both ends of the field. We deliberately don't /* Get references to both ends of the field. We deliberately don't
......
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