This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Make predict.c:predict_insn () static
- From: "Ben Elliston" <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 18 Nov 2004 10:57:16 +1100
- Subject: 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))