This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] value-prof.c: Remove a local variable that is set but notused.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 12 Mar 2005 09:11:01 -0500 (EST)
- Subject: [patch] value-prof.c: Remove a local variable that is set but notused.
Hi,
Attached is a patch to remove a local variable that is set but not
used.
Bootstrapped on i686-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
* value-prof.c (mod_subtract_transform): Remove local variable
value.
Index: value-prof.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/value-prof.c,v
retrieving revision 1.19
diff -u -d -p -r1.19 value-prof.c
--- value-prof.c 10 Mar 2005 15:36:39 -0000 1.19
+++ value-prof.c 11 Mar 2005 18:52:12 -0000
@@ -826,7 +826,7 @@ gen_mod_subtract (enum machine_mode mode
static bool
mod_subtract_transform (rtx insn)
{
- rtx set, set_src, set_dest, op1, op2, value, histogram;
+ rtx set, set_src, set_dest, op1, op2, histogram;
enum rtx_code code;
enum machine_mode mode;
gcov_type wrong_values, counts[2], count, all;
@@ -858,7 +858,6 @@ mod_subtract_transform (rtx insn)
return false;
histogram = XEXP (XEXP (histogram, 0), 1);
- value = XEXP (histogram, 0);
histogram = XEXP (histogram, 1);
all = 0;