From patchwork Sun Mar 4 21:34:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 144537 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 73360B6FA1 for ; Mon, 5 Mar 2012 08:35:00 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1331501701; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:MIME-Version:Received:Received:Date: Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=X3P//sFlUnzPV1XY0UZo0ERZJrI=; b=IrWhwrDZbwQvPfT iy2mO+gbuiIEMPJREG6UkYD+DXn/TjapO/URiaW91yEL9mQGRBe0jYI5zyKFgxdA z1wMagy2WCBum9X5/T77aKfqsC/FTdW6KQWkDAi2jPOSdDV934KbPKhbMeI662pU 4abJbGNc2xnSxIOpmRyIJJKh/i8o= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received-SPF:Authentication-Results:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=F8z5rRzsxThkdjrEx/Y+PfxX6IQZOfOCD7LAc9xF1rk++e2Z8eOqqBnhuQUAvJ rqQTn1GfWlHdN4ty1aqxHAqzBXh2J3+LrTKihsklyaNFFRNdANJGLwGiT/0m8L7G Lmwx2OPkgHknqnckoTVJVqbSODpGlgX7UisMB5VU/Y+J4=; Received: (qmail 16577 invoked by alias); 4 Mar 2012 21:34:56 -0000 Received: (qmail 16437 invoked by uid 22791); 4 Mar 2012 21:34:55 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 04 Mar 2012 21:34:40 +0000 Received: by ghbz2 with SMTP id z2so1513636ghb.20 for ; Sun, 04 Mar 2012 13:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of ubizjak@gmail.com designates 10.236.138.110 as permitted sender) client-ip=10.236.138.110; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ubizjak@gmail.com designates 10.236.138.110 as permitted sender) smtp.mail=ubizjak@gmail.com; dkim=pass header.i=ubizjak@gmail.com Received: from mr.google.com ([10.236.138.110]) by 10.236.138.110 with SMTP id z74mr23242916yhi.114.1330896879780 (num_hops = 1); Sun, 04 Mar 2012 13:34:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.138.110 with SMTP id z74mr18430741yhi.114.1330896879716; Sun, 04 Mar 2012 13:34:39 -0800 (PST) Received: by 10.146.241.19 with HTTP; Sun, 4 Mar 2012 13:34:39 -0800 (PST) Date: Sun, 4 Mar 2012 22:34:39 +0100 Message-ID: Subject: [PATCH, i386]: Declare some variables bool From: Uros Bizjak To: gcc-patches@gcc.gnu.org Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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. */