This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] tree-inline.c: Make remap_save_expr static.


Hi,

Attached is a patch to make remap_save_expr static as it is used only
from tree-inline.c.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>

	* tree-inline.c (remap_save_expr): Make it static.
	* tree-inline.h: Remove the corresponding prototype.

Index: tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.148
diff -u -d -p -r1.148 tree-inline.c
--- tree-inline.c	31 Oct 2004 21:58:09 -0000	1.148
+++ tree-inline.c	8 Nov 2004 19:13:06 -0000
@@ -139,6 +139,7 @@ static tree mark_local_for_remap_r (tree
 static void unsave_expr_1 (tree);
 static tree unsave_r (tree *, int *, void *);
 static void declare_inline_vars (tree bind_expr, tree vars);
+static void remap_save_expr (tree *, void *, int *);
 
 /* Insert a tree->tree mapping for ID.  Despite the name suggests
    that the trees should be variables, it is used for more than that.  */
@@ -2282,7 +2283,7 @@ copy_tree_r (tree *tp, int *walk_subtree
    information indicating to what new SAVE_EXPR this one should be mapped,
    use that one.  Otherwise, create a new node and enter it in ST.  */
 
-void
+static void
 remap_save_expr (tree *tp, void *st_, int *walk_subtrees)
 {
   splay_tree st = (splay_tree) st_;
Index: tree-inline.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.h,v
retrieving revision 1.13
diff -u -d -p -r1.13 tree-inline.h
--- tree-inline.h	15 Oct 2004 14:47:12 -0000	1.13
+++ tree-inline.h	8 Nov 2004 19:13:06 -0000
@@ -29,7 +29,6 @@ bool tree_inlinable_function_p (tree);
 tree copy_tree_r (tree *, int *, void *);
 void clone_body (tree, tree, void *);
 tree save_body (tree, tree *, tree *);
-void remap_save_expr (tree *, void *, int *);
 int estimate_num_insns (tree expr);
 
 /* 0 if we should not perform inlining.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]