Commit 55185278 by Jiong Wang Committed by Marcus Shawcroft

[AArch64] Remove useless variable 'increment'

From-SVN: r212950
parent 0b4a9743
......@@ -2,6 +2,12 @@
* config/aarch64/aarch64.c
(aarch64_save_or_restore_callee_save_registers)
(aarch64_save_or_restore_fprs): Remove 'increment'.
2014-07-23 Jiong Wang <jiong.wang@arm.com>
* config/aarch64/aarch64.c
(aarch64_save_or_restore_callee_save_registers)
(aarch64_save_or_restore_fprs): Use register offset in
cfun->machine->frame.reg_offset.
......
......@@ -1910,9 +1910,7 @@ aarch64_register_saved_on_entry (int regno)
static void
aarch64_save_or_restore_fprs (HOST_WIDE_INT start_offset, int increment,
bool restore)
aarch64_save_or_restore_fprs (HOST_WIDE_INT start_offset, bool restore)
{
unsigned regno;
unsigned regno2;
......@@ -1998,7 +1996,6 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT start_offset,
bool restore)
{
rtx insn;
HOST_WIDE_INT increment = UNITS_PER_WORD;
rtx (*gen_mem_ref) (enum machine_mode, rtx) = (frame_pointer_needed
? gen_frame_mem : gen_rtx_MEM);
unsigned limit = frame_pointer_needed ? R28_REGNUM : R30_REGNUM;
......@@ -2076,7 +2073,7 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT start_offset,
}
}
aarch64_save_or_restore_fprs (start_offset, increment, restore);
aarch64_save_or_restore_fprs (start_offset, restore);
}
/* AArch64 stack frames generated by this compiler look like:
......
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