Branch predictors debug output take II
Matt Kraai
kraai@alumni.carnegiemellon.edu
Tue Aug 14 11:45:00 GMT 2001
Howdy,
This original patch in this thread caused the following warning
message:
/home/kraai/dev/gcc/gcc/predict.c: In function `dump_prediction':
/home/kraai/dev/gcc/gcc/predict.c:186: warning: promoted argument `used' doesn't match prototype
/home/kraai/dev/gcc/gcc/predict.c:62: warning: prototype declaration
The problem is that a bool function parameter is used[1]. The
following patch changes the type to int and eliminates the
warning.
OK to commit?
Matt
1. http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00114.html
2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* predict.c (dump_prediction): Change `bool' parameter to `int'.
Index: gcc/predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.34
diff -u -r1.34 predict.c
--- predict.c 2001/08/13 14:32:06 1.34
+++ predict.c 2001/08/14 14:38:11
@@ -59,7 +59,7 @@
static void combine_predictions_for_insn PARAMS ((rtx, basic_block));
static void dump_prediction PARAMS ((enum br_predictor, int,
- basic_block, bool));
+ basic_block, int));
static void estimate_loops_at_level PARAMS ((struct loop *loop));
static void propagate_freq PARAMS ((basic_block));
static void estimate_bb_frequencies PARAMS ((struct loops *));
@@ -182,7 +182,7 @@
enum br_predictor predictor;
int probability;
basic_block bb;
- bool used;
+ int used;
{
edge e = bb->succ;
More information about the Gcc-patches
mailing list