From f0050a4b2a8ac6d61eeffcac8ad484be9ed462a3 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Sun, 4 Mar 2012 22:32:36 +0100 Subject: [PATCH] i386.c (ix86_print_operand): Declare taken and cputaken as bool. * config/i386/i386.c (ix86_print_operand) : Declare taken and cputaken as bool. From-SVN: r184903 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 015bf019b68..5f1d679a9a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -13,6 +13,11 @@ * config/i386/i386.c (ix86_print_operand_address): Only handle zero-extended DImode addresses. +2012-03-04 Uros Bizjak + + * config/i386/i386.c (ix86_print_operand) : Declare + taken and cputaken as bool. + 2012-03-04 Uros Bizjak * config/i386/constraints.md (Ya): New internal constraint. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1a2067eb4ba..973bbeb68db 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. */ -- 2.30.2