Commit 241dbd9d by Qing Zhao Committed by Paolo Carlini

re PR target/81422 ([aarch64] internal compiler error: in update_equiv_regs, at ira.c:3425)

/gcc
2017-10-11  Qing Zhao  <qing.zhao@oracle.com>

	PR target/81422
	* config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
	Check whether the dest is REG before adding REG_EQUIV note.

/gcc/testsuite
2017-10-11  Qing Zhao  <qing.zhao@oracle.com>

	PR target/81422
      	* gcc.target/aarch64/pr81422.C: New test.

From-SVN: r253657
parent 6dcb9e91
2017-10-11 Qing Zhao <qing.zhao@oracle.com>
PR target/81422
* config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
Check whether the dest is REG before adding REG_EQUIV note.
2017-10-11 Vladimir Makarov <vmakarov@redhat.com>
PR sanitizer/82353
......@@ -1490,7 +1490,8 @@ aarch64_load_symref_appropriately (rtx dest, rtx imm,
tp = gen_lowpart (mode, tp);
emit_insn (gen_rtx_SET (dest, gen_rtx_PLUS (mode, tp, x0)));
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
if (REG_P (dest))
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
return;
}
......@@ -1524,7 +1525,8 @@ aarch64_load_symref_appropriately (rtx dest, rtx imm,
}
emit_insn (gen_rtx_SET (dest, gen_rtx_PLUS (mode, tp, tmp_reg)));
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
if (REG_P (dest))
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
return;
}
......@@ -1565,7 +1567,8 @@ aarch64_load_symref_appropriately (rtx dest, rtx imm,
gcc_unreachable ();
}
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
if (REG_P (dest))
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
return;
}
......@@ -1594,7 +1597,8 @@ aarch64_load_symref_appropriately (rtx dest, rtx imm,
emit_insn (gen_tlsie_tiny_sidi (dest, imm, tp));
}
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
if (REG_P (dest))
set_unique_reg_note (get_last_insn (), REG_EQUIV, imm);
return;
}
......
2017-10-11 Qing Zhao <qing.zhao@oracle.com>
PR target/81422
* gcc.target/aarch64/pr81422.C: New test.
2017-10-11 Vladimir Makarov <vmakarov@redhat.com>
PR sanitizer/82353
......
/* { dg-do compile } */
/* { dg-options "-O0" } */
struct DArray
{
__SIZE_TYPE__ length;
int* ptr;
};
void foo35(DArray)
{
static __thread int x[5];
foo35({5, (int*)&x});
}
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