diff mbox

[AArch64/GCC,3/N] Remove useless local variable "start_offset"

Message ID 53CE79F8.2050801@arm.com
State New
Headers show

Commit Message

Jiong Wang July 22, 2014, 2:49 p.m. UTC
This patch remove the useless local variable start_offset.

*no functional change*

OK to install?

thanks.

gcc/
   * config/aarch64/aarch64.c (aarch64_save_or_restore_callee_save_registers): Rename
   'offset' to 'start_offset'.  Remove local variable 'start_offset'.

Comments

Marcus Shawcroft July 23, 2014, 4 p.m. UTC | #1
On 22 July 2014 15:49, Jiong Wang <jiong.wang@arm.com> wrote:
> gcc/
>   * config/aarch64/aarch64.c
> (aarch64_save_or_restore_callee_save_registers): Rename
>   'offset' to 'start_offset'.  Remove local variable 'start_offset'.

OK and applied.
/Marcus
diff mbox

Patch

>From 5aa00d14362096436069092b4644d184dc4f2958 Mon Sep 17 00:00:00 2001
From: Jiong Wang <jiong.wang@arm.com>
Date: Tue, 17 Jun 2014 21:36:48 +0100
Subject: [PATCH 03/19] [AArch64/GCC][3/20] Remove useless local variable
 "start_offset"

This patch remove the useless local variable start_offset.

* 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_callee_save_registers):
  Rename 'offset' to 'start_offset', remove local variable 'start_offset'.
---
 gcc/config/aarch64/aarch64.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index a60b11b..bd43736 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -1994,12 +1994,11 @@  aarch64_save_or_restore_fprs (HOST_WIDE_INT start_offset, int increment,
 /* offset from the stack pointer of where the saves and
    restore's have to happen.  */
 static void
-aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT offset,
+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 start_offset = offset;
   HOST_WIDE_INT increment = UNITS_PER_WORD;
   rtx (*gen_mem_ref) (enum machine_mode, rtx) = (frame_pointer_needed
 						 ? gen_frame_mem : gen_rtx_MEM);
-- 
1.7.9.5