From 7b4866054705e10b53d7108af22c2930fd424d71 Mon Sep 17 00:00:00 2001 From: James Greenhalgh Date: Tue, 18 Dec 2012 17:43:25 +0000 Subject: [PATCH] [AArch64] Fix some warnings about unused variables. gcc/ * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Remove unused variables. (aarch64_split_compare_and_swap): Likewise. From-SVN: r194588 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/aarch64.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12d86974e74..79c4feb79c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-12-18 James Greenhalgh + + * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): + Remove unused variables. + (aarch64_split_compare_and_swap): Likewise. + 2012-12-18 Kyrylo Tkachov * config/arm/driver-arm.c (arm_cpu_table): diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 09b17778d47..03b13613c6e 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -6382,8 +6382,6 @@ aarch64_simd_disambiguate_copy (rtx *operands, rtx *dest, int aarch64_simd_attr_length_move (rtx insn) { - rtx reg, mem, addr; - int load; enum machine_mode mode; extract_insn_cached (insn); @@ -6666,7 +6664,6 @@ aarch64_split_compare_and_swap (rtx operands[]) { rtx rval, mem, oldval, newval, scratch; enum machine_mode mode; - enum memmodel mod_s; bool is_weak; rtx label1, label2, x, cond; @@ -6675,7 +6672,6 @@ aarch64_split_compare_and_swap (rtx operands[]) oldval = operands[2]; newval = operands[3]; is_weak = (operands[4] != const0_rtx); - mod_s = (enum memmodel) INTVAL (operands[5]); scratch = operands[7]; mode = GET_MODE (mem);