]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] Remove useless parameter base_rtx.
authorJiong Wang <jiong.wang@arm.com>
Wed, 23 Jul 2014 15:58:30 +0000 (15:58 +0000)
committerMarcus Shawcroft <mshawcroft@gcc.gnu.org>
Wed, 23 Jul 2014 15:58:30 +0000 (15:58 +0000)
From-SVN: r212947

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 78c0790f7780291dd8de4bd2ea1cfc7880dcc3ec..34560ae67452e5d7668a78c5e037eac901a4583c 100644 (file)
@@ -1,3 +1,9 @@
+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
index e270d99be1c6fb789728f3b8c4b0c5358ef3c158..6c71dccd0abdeb1aad12568925a84cd604d53634 100644 (file)
@@ -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: