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-ssa-operands.c: Make build_ssa_operands static.


Hi,

Attached is a patch to make build_ssa_operands static as it is used
only from tree-ssa-operands.c.

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

Kazu Hirata

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

	* tree-ssa-operands.c (build_ssa_operands): Make it static.
	* tree-flow.h: Remove the corresponding prototype.

Index: tree-flow.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-flow.h,v
retrieving revision 2.58
diff -u -d -p -r2.58 tree-flow.h
--- tree-flow.h	2 Nov 2004 00:23:04 -0000	2.58
+++ tree-flow.h	8 Nov 2004 19:13:21 -0000
@@ -733,10 +733,6 @@ void vn_delete (void);
 /* In tree-sra.c  */
 void insert_edge_copies (tree stmt, basic_block bb);
 
-/* In tree-ssa-operands.c  */
-extern void build_ssa_operands (tree, stmt_ann_t, stmt_operands_p, 
-				stmt_operands_p);
-
 /* In tree-loop-linear.c  */
 extern void linear_transform_loops (struct loops *);
 
Index: tree-ssa-operands.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-operands.c,v
retrieving revision 2.55
diff -u -d -p -r2.55 tree-ssa-operands.c
--- tree-ssa-operands.c	4 Nov 2004 08:41:16 -0000	2.55
+++ tree-ssa-operands.c	8 Nov 2004 19:13:22 -0000
@@ -811,7 +811,7 @@ append_v_must_def (tree var)
           <* compare old_ops_copy and new_ops *>
        free_ssa_operands (old_ops);					*/
 
-void
+static void
 build_ssa_operands (tree stmt, stmt_ann_t ann, stmt_operands_p old_ops, 
 		    stmt_operands_p new_ops)
 {


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