Hi,
>> Not to mention the ChangeLog entry.
Sorry about the missed patch and ChangeLog Entry.
Please review the patch and let me know if its OK.
Regression Tested on aarch64-elf. No new Regressions.
2012-11-28 Naveen H.S <naveen.hurugalaw...@caviumnetworks.com>
* aarch64.c (aarch64_load_symref_appropriately): Handle
SYMBOL_SMALL_ABSOLUTE transfers effectively.
Regards,
Naveen
--- gcc/config/aarch64/aarch64.c 2012-11-22 16:23:21.147121486 +0530
+++ gcc/config/aarch64/aarch64.c 2012-11-27 16:54:04.412608356 +0530
@@ -515,9 +515,9 @@ aarch64_load_symref_appropriately (rtx d
{
tmp_reg = gen_reg_rtx (Pmode);
}
-
- emit_move_insn (tmp_reg, gen_rtx_HIGH (Pmode, imm));
- emit_insn (gen_add_losym (dest, tmp_reg, imm));
+ emit_move_insn (dest, gen_rtx_HIGH (Pmode, imm));
+ emit_insn (gen_add_losym (tmp_reg, dest, imm));
+ emit_move_insn (dest, tmp_reg);
return;
}