This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[AArch64/GCC][6/N] Remove useless variable 'increment'


This patch removes useless variable "increment", use UNITS_PER_WORD directly.

*no functional change*

ok to install?

thanks.

gcc/
  * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Remove "increment".
  (aarch64_save_or_restore_callee_save_registers): Likewise.
>From 9754ca4c3aea240077a81430f355f37f3fa21287 Mon Sep 17 00:00:00 2001
From: Jiong Wang <jiong.wang@arm.com>
Date: Tue, 17 Jun 2014 21:41:38 +0100
Subject: [PATCH 06/19] [AArch64/GCC][6/20] Remove useless variable
 'increment'

This patch removes useless variable "increment", use UNITS_PER_WORD directly.

*no functional change*

2014-06-16  Jiong Wang <jiong.wang@arm.com>
	    Marcus Shawcroft  <marcus.shawcroft@arm.com>

gcc/
  * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Remove increment".
  (aarch64_save_or_restore_callee_save_registers): Likewise.
---
 gcc/config/aarch64/aarch64.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index f61d96a..1c2d2fb 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -1907,9 +1907,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;
@@ -1995,7 +1993,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;
@@ -2073,7 +2070,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:
-- 
1.7.9.5



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]