aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2014-07-23 16:06:52 +0000
committerMarcus Shawcroft <mshawcroft@gcc.gnu.org>2014-07-23 16:06:52 +0000
commit55185278aba98ee8219ed8b73ba6336be5f7aeb6 (patch)
treee9675408f41b283abcf6bd1de7ce97066c35da58
parent0b4a9743a38af4c0f8483117813d01ae31a7e6d5 (diff)
downloadgcc-55185278aba98ee8219ed8b73ba6336be5f7aeb6.zip
gcc-55185278aba98ee8219ed8b73ba6336be5f7aeb6.tar.gz
gcc-55185278aba98ee8219ed8b73ba6336be5f7aeb6.tar.bz2
[AArch64] Remove useless variable 'increment'
From-SVN: r212950
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/aarch64/aarch64.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b21db2..7fb2c22 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 7610cef..f8453e3 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -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: