diff options
author | mshawcroft <mshawcroft@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-23 15:58:30 +0000 |
---|---|---|
committer | mshawcroft <mshawcroft@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-23 15:58:30 +0000 |
commit | 774cc4b6d1636c00098d2a767aae07ca16fe42c8 (patch) | |
tree | 3f4bdc4dcf3df9ecd494f9d2ac2622f7f386123f /gcc | |
parent | a808fe1ce86eecc0556283e2ad99868175caf2b5 (diff) | |
download | gcc-774cc4b6d1636c00098d2a767aae07ca16fe42c8.tar.gz |
[AArch64] Remove useless parameter base_rtx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 13 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 78c0790f778..34560ae6745 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,12 @@ 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): Remove base_rtx. + +2014-07-23 Jiong Wang <jiong.wang@arm.com> + + * config/aarch64/aarch64.c (aarch64_save_or_restore_callee_save_registers): Rename 'offset' to 'start_offset'. Remove local variable 'start_offset'. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index e270d99be1c..6c71dccd0ab 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -1911,7 +1911,7 @@ aarch64_register_saved_on_entry (int regno) static void aarch64_save_or_restore_fprs (HOST_WIDE_INT start_offset, int increment, - bool restore, rtx base_rtx) + bool restore) { unsigned regno; @@ -1927,7 +1927,7 @@ aarch64_save_or_restore_fprs (HOST_WIDE_INT start_offset, int increment, rtx mem; mem = gen_mem_ref (DFmode, plus_constant (Pmode, - base_rtx, + stack_pointer_rtx, start_offset)); for (regno2 = regno + 1; @@ -1947,7 +1947,7 @@ aarch64_save_or_restore_fprs (HOST_WIDE_INT start_offset, int increment, mem2 = gen_mem_ref (DFmode, plus_constant (Pmode, - base_rtx, + stack_pointer_rtx, start_offset + increment)); if (restore == false) { @@ -2001,7 +2001,6 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT start_offset, bool restore) { rtx insn; - rtx base_rtx = stack_pointer_rtx; HOST_WIDE_INT increment = UNITS_PER_WORD; rtx (*gen_mem_ref) (enum machine_mode, rtx) = (frame_pointer_needed ? gen_frame_mem : gen_rtx_MEM); @@ -2016,7 +2015,7 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT start_offset, rtx mem; mem = gen_mem_ref (Pmode, plus_constant (Pmode, - base_rtx, + stack_pointer_rtx, start_offset)); for (regno2 = regno + 1; @@ -2035,7 +2034,7 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT start_offset, mem2 = gen_mem_ref (Pmode, plus_constant (Pmode, - base_rtx, + stack_pointer_rtx, start_offset + increment)); if (restore == false) { @@ -2080,7 +2079,7 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT start_offset, } } - aarch64_save_or_restore_fprs (start_offset, increment, restore, base_rtx); + aarch64_save_or_restore_fprs (start_offset, increment, restore); } /* AArch64 stack frames generated by this compiler look like: |