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]

Make predict.c:predict_insn () static


Okay for mainline?

2004-11-18  Ben Elliston  <bje@au.ibm.com>

	* predict.h (predict_insn): Remove extern declaration.
	* predict.c (predict_insn): Make static.

Index: predict.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/predict.h,v
retrieving revision 1.12
diff -u -p -r1.12 predict.h
--- predict.h	15 Oct 2004 14:47:09 -0000	1.12
+++ predict.h	17 Nov 2004 23:55:36 -0000
@@ -40,7 +40,6 @@ enum prediction
 #define IS_TAKEN 1		/* Predict edges to the block as taken.  */
 
 extern void predict_insn_def (rtx, enum br_predictor, enum prediction);
-extern void predict_insn (rtx, enum br_predictor, int);
 extern int counts_to_freqs (void);
 
 #endif  /* GCC_PREDICT_H */
Index: predict.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/predict.c,v
retrieving revision 1.133
diff -u -p -r1.133 predict.c
--- predict.c	13 Nov 2004 21:11:04 -0000	1.133
+++ predict.c	17 Nov 2004 23:55:36 -0000
@@ -177,7 +177,7 @@ tree_predicted_by_p (basic_block bb, enu
   return false;
 }
 
-void
+static void
 predict_insn (rtx insn, enum br_predictor predictor, int probability)
 {
   if (!any_condjump_p (insn))


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