From patchwork Sun Mar 4 21:34:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [i386] : Declare some variables bool Date: Sun, 04 Mar 2012 11:34:39 -0000 From: Uros Bizjak X-Patchwork-Id: 144537 Message-Id: To: gcc-patches@gcc.gnu.org Hello! 2012-03-04 Uros Bizjak * config/i386/i386.c (ix86_print_operand) : Declare taken and cputaken as bool. Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline as obvious. Uros. Index: config/i386/i386.c =================================================================== --- config/i386/i386.c (revision 184886) +++ config/i386/i386.c (working copy) @@ -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. */