summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormshawcroft <mshawcroft@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-23 16:06:52 +0000
committermshawcroft <mshawcroft@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-23 16:06:52 +0000
commit0744d28703b7032fbaf379e1679c3451c2989dd3 (patch)
treee9675408f41b283abcf6bd1de7ce97066c35da58 /gcc
parentadc234e0326de93a28c055d906700d5bffddee36 (diff)
downloadgcc-0744d28703b7032fbaf379e1679c3451c2989dd3.tar.gz
[AArch64] Remove useless variable 'increment'
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 2b21db2c0bf..7fb2c225af4 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 7610cef33c1..f8453e3f655 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: