diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2012-03-04 22:32:36 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2012-03-04 22:32:36 +0100 |
commit | f0050a4b2a8ac6d61eeffcac8ad484be9ed462a3 (patch) | |
tree | 646cbb3cc1802bb0ca29edc35bd85e0c3191dd9b /gcc/config | |
parent | 55b86fb00da9c38db67d176558d673be6e8f66ac (diff) | |
download | gcc-f0050a4b2a8ac6d61eeffcac8ad484be9ed462a3.zip gcc-f0050a4b2a8ac6d61eeffcac8ad484be9ed462a3.tar.gz gcc-f0050a4b2a8ac6d61eeffcac8ad484be9ed462a3.tar.bz2 |
i386.c (ix86_print_operand): Declare taken and cputaken as bool.
* config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
taken and cputaken as bool.
From-SVN: r184903
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1a2067e..973bbeb 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -14136,7 +14136,8 @@ ix86_print_operand (FILE *file, rtx x, int code) rtx x; if (!optimize - || optimize_function_for_size_p (cfun) || !TARGET_BRANCH_PREDICTION_HINTS) + || optimize_function_for_size_p (cfun) + || !TARGET_BRANCH_PREDICTION_HINTS) return; x = find_reg_note (current_output_insn, REG_BR_PROB, 0); @@ -14147,8 +14148,9 @@ ix86_print_operand (FILE *file, rtx x, int code) if (pred_val < REG_BR_PROB_BASE * 45 / 100 || pred_val > REG_BR_PROB_BASE * 55 / 100) { - int taken = pred_val > REG_BR_PROB_BASE / 2; - int cputaken = final_forward_branch_p (current_output_insn) == 0; + bool taken = pred_val > REG_BR_PROB_BASE / 2; + bool cputaken + = final_forward_branch_p (current_output_insn) == 0; /* Emit hints only in the case default branch prediction heuristics would fail. */ |