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-if-conv.c: Make tree_if_conversion static.


Hi,

Attached is a patch to make tree_if_conversion static as it is used
only from tree-if-conv.c.

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

Kazu Hirata

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

	* tree-if-conv.c (tree_if_conversion): 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:01 -0000
@@ -692,10 +692,6 @@ enum move_pos
   };
 extern enum move_pos movement_possibility (tree);
 
-/* In tree-if-conv.c  */
-bool tree_if_conversion (struct loop *, bool);
-
-
 /* In tree-flow-inline.h  */
 static inline int phi_arg_from_edge (tree, edge);
 static inline bool is_call_clobbered (tree);
Index: tree-if-conv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-if-conv.c,v
retrieving revision 2.13
diff -u -d -p -r2.13 tree-if-conv.c
--- tree-if-conv.c	8 Nov 2004 15:02:14 -0000	2.13
+++ tree-if-conv.c	8 Nov 2004 19:13:01 -0000
@@ -138,7 +138,7 @@ static basic_block *ifc_bbs;
    for vectorizer or not. If it is used for vectorizer, additional checks are
    used. (Vectorization checks are not yet implemented).  */
 
-bool
+static bool
 tree_if_conversion (struct loop *loop, bool for_vectorizer)
 {
   basic_block bb;


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