2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
to avoid shared structure error.
From-SVN: r243538
+2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
+
+ * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
+ to avoid shared structure error.
+
2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR target/78695
from = nios2_legitimize_constant_address (from);
if (CONSTANT_P (from))
{
- emit_insn (gen_rtx_SET (to, gen_rtx_HIGH (Pmode, from)));
+ emit_insn (gen_rtx_SET (to,
+ gen_rtx_HIGH (Pmode, copy_rtx (from))));
emit_insn (gen_rtx_SET (to, gen_rtx_LO_SUM (Pmode, to, from)));
set_unique_reg_note (get_last_insn (), REG_EQUAL,
copy_rtx (operands[1]));