aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-11-19 00:03:14 +0000
committerBen Elliston <bje@gcc.gnu.org>2004-11-19 11:03:14 +1100
commit7d6d381abbc54e2a2f12343cb909c814c3b8aa84 (patch)
treecaa5eb1ab6af5253bdb36f00fac1fccc796f9184
parent4eeca74f4cd09d72bb23add8ec36daeb8b6b0543 (diff)
downloadgcc-7d6d381abbc54e2a2f12343cb909c814c3b8aa84.zip
gcc-7d6d381abbc54e2a2f12343cb909c814c3b8aa84.tar.gz
gcc-7d6d381abbc54e2a2f12343cb909c814c3b8aa84.tar.bz2
predict.h (predict_insn): Remove extern declaration.
* predict.h (predict_insn): Remove extern declaration. * predict.c (predict_insn): Make static. From-SVN: r90884
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/predict.c2
-rw-r--r--gcc/predict.h1
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c0e2436..44b2341 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-19 Ben Elliston <bje@au.ibm.com>
+
+ * predict.h (predict_insn): Remove extern declaration.
+ * predict.c (predict_insn): Make static.
+
2004-11-19 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
diff --git a/gcc/predict.c b/gcc/predict.c
index 944a556..432e837 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -177,7 +177,7 @@ tree_predicted_by_p (basic_block bb, enum br_predictor predictor)
return false;
}
-void
+static void
predict_insn (rtx insn, enum br_predictor predictor, int probability)
{
if (!any_condjump_p (insn))
diff --git a/gcc/predict.h b/gcc/predict.h
index bb9a6a0..17c2c94 100644
--- a/gcc/predict.h
+++ b/gcc/predict.h
@@ -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 */