[patch] tree-ssa-loop-niter.c: Make some functions static.
Kazu Hirata
kazu@cs.umass.edu
Mon Nov 8 21:50:00 GMT 2004
Hi,
Attached is a patch to make upper_bound_in_type and
lower_bound_in_type static as they are used only from
tree-ssa-loop-niter.c.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-loop-niter.c (upper_bound_in_type,
lower_bound_in_type): Make them static.
* tree.h: Remove the corresponding prototypes.
Index: tree-ssa-loop-niter.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-loop-niter.c,v
retrieving revision 2.14
diff -u -d -p -r2.14 tree-ssa-loop-niter.c
--- tree-ssa-loop-niter.c 27 Oct 2004 20:27:20 -0000 2.14
+++ tree-ssa-loop-niter.c 8 Nov 2004 19:13:15 -0000
@@ -1106,7 +1106,7 @@ compare_trees (tree a, tree b)
/* Returns the largest value obtainable by casting something in INNER type to
OUTER type. */
-tree
+static tree
upper_bound_in_type (tree outer, tree inner)
{
unsigned HOST_WIDE_INT lo, hi;
@@ -1152,7 +1152,7 @@ upper_bound_in_type (tree outer, tree in
/* Returns the smallest value obtainable by casting something in INNER type to
OUTER type. */
-tree
+static tree
lower_bound_in_type (tree outer, tree inner)
{
unsigned HOST_WIDE_INT lo, hi;
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.647
diff -u -d -p -r1.647 tree.h
--- tree.h 4 Nov 2004 23:30:16 -0000 1.647
+++ tree.h 8 Nov 2004 19:13:18 -0000
@@ -3923,10 +3923,6 @@ extern int tree_node_sizes[];
restricted to creating gimple expressions. */
extern bool in_gimple_form;
-/* In tree-ssa-loop-niter.c. */
-tree lower_bound_in_type (tree, tree);
-tree upper_bound_in_type (tree, tree);
-
/* In tree-ssa-threadupdate.c. */
extern bool thread_through_all_blocks (void);
More information about the Gcc-patches
mailing list