From patchwork Thu May 12 19:55:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 95357 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 AA8AFB6F11 for ; Fri, 13 May 2011 05:55:32 +1000 (EST) Received: (qmail 3448 invoked by alias); 12 May 2011 19:55:29 -0000 Received: (qmail 3440 invoked by uid 22791); 12 May 2011 19:55:28 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 May 2011 19:55:15 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 12 May 2011 12:55:14 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by fmsmga001.fm.intel.com with ESMTP; 12 May 2011 12:55:14 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 75C6D180E11; Thu, 12 May 2011 12:55:14 -0700 (PDT) Date: Thu, 12 May 2011 12:55:14 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: PATCH: Change maybe_eh_return to bool Message-ID: <20110512195514.GA14028@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi, This patch changes maybe_eh_return to bool. OK for trunk? Thanks. H.J. --- 2011-05-12 H.J. Lu * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool. (ix86_emit_restore_regs_using_mov): Likewise. (ix86_emit_restore_sse_regs_using_mov): Likewise. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1cf8933..357e57c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -9066,7 +9066,7 @@ ix86_select_alt_pic_regnum (void) /* Return 1 if we need to save REGNO. */ static int -ix86_save_reg (unsigned int regno, int maybe_eh_return) +ix86_save_reg (unsigned int regno, bool maybe_eh_return) { if (pic_offset_table_rtx && regno == REAL_PIC_OFFSET_TABLE_REGNUM @@ -10898,7 +10898,7 @@ ix86_emit_leave (void) First register is restored from CFA - CFA_OFFSET. */ static void ix86_emit_restore_regs_using_mov (HOST_WIDE_INT cfa_offset, - int maybe_eh_return) + bool maybe_eh_return) { struct machine_function *m = cfun->machine; unsigned int regno; @@ -10937,7 +10937,7 @@ ix86_emit_restore_regs_using_mov (HOST_WIDE_INT cfa_offset, First register is restored from CFA - CFA_OFFSET. */ static void ix86_emit_restore_sse_regs_using_mov (HOST_WIDE_INT cfa_offset, - int maybe_eh_return) + bool maybe_eh_return) { unsigned int regno;