Commit 1cf4526c by Sandra Loosemore Committed by Sandra Loosemore

nios2.c (nios2_emit_move_sequence): Call copy_rtx to avoid shared structure error.

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
parent 8a828956
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> 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR target/78695 PR target/78695
...@@ -2334,7 +2334,8 @@ nios2_emit_move_sequence (rtx *operands, machine_mode mode) ...@@ -2334,7 +2334,8 @@ nios2_emit_move_sequence (rtx *operands, machine_mode mode)
from = nios2_legitimize_constant_address (from); from = nios2_legitimize_constant_address (from);
if (CONSTANT_P (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))); emit_insn (gen_rtx_SET (to, gen_rtx_LO_SUM (Pmode, to, from)));
set_unique_reg_note (get_last_insn (), REG_EQUAL, set_unique_reg_note (get_last_insn (), REG_EQUAL,
copy_rtx (operands[1])); copy_rtx (operands[1]));
......
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