This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-ssa-dce.c: Make several variables static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 06 Mar 2005 22:14:36 -0500 (EST)
- Subject: [patch] tree-ssa-dce.c: Make several variables static.
Hi,
Attached is a patch to make several variables static as they are used
only in tree-ssa-dce.c.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-dce.c (control_dependence_map,
visited_control_parents): Make them static.
Index: tree-ssa-dce.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dce.c,v
retrieving revision 2.34
diff -u -d -p -r2.34 tree-ssa-dce.c
--- tree-ssa-dce.c 5 Mar 2005 15:29:25 -0000 2.34
+++ tree-ssa-dce.c 5 Mar 2005 21:08:18 -0000
@@ -91,11 +91,11 @@ static sbitmap last_stmt_necessary;
use a bitmap for each block recording its edges. An array holds the
bitmap. The Ith bit in the bitmap is set if that block is dependent
on the Ith edge. */
-bitmap *control_dependence_map;
+static bitmap *control_dependence_map;
/* Vector indicating that a basic block has already had all the edges
processed that it is control dependent on. */
-sbitmap visited_control_parents;
+static sbitmap visited_control_parents;
/* Execute CODE for each edge (given number EDGE_NUMBER within the CODE)
for which the block with index N is control dependent. */