This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-data-ref.c: Remove a local variable that is set butnot used.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 09 Mar 2005 06:30:23 -0500 (EST)
- Subject: [patch] tree-data-ref.c: Remove a local variable that is set butnot used.
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-09 Kazu Hirata <kazu@cs.umass.edu>
* tree-data-ref.c (array_base_name_differ_p): Remove ta and
tb.
Index: tree-data-ref.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-data-ref.c,v
retrieving revision 2.23
diff -u -d -p -r2.23 tree-data-ref.c
--- tree-data-ref.c 17 Feb 2005 12:58:01 -0000 2.23
+++ tree-data-ref.c 9 Mar 2005 07:29:34 -0000
@@ -109,14 +109,10 @@ array_base_name_differ_p (struct data_re
{
tree base_a = DR_BASE_NAME (a);
tree base_b = DR_BASE_NAME (b);
- tree ta, tb;
if (!base_a || !base_b)
return false;
- ta = TREE_TYPE (base_a);
- tb = TREE_TYPE (base_b);
-
/* Determine if same base. Example: for the array accesses
a[i], b[i] or pointer accesses *a, *b, bases are a, b. */
if (base_a == base_b)