From patchwork Fri Mar 2 20:58:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 144345 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 BBC581007D6 for ; Sat, 3 Mar 2012 07:59:07 +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=1331326748; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Date:From:To:Subject:Message-ID:Reply-To:MIME-Version: Content-Type:Content-Disposition:User-Agent:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=dZ7JCcmz1DX7YGr1u8pn8LQ+sqU=; b=YWDC/sfTj3d6z+VxUe7D82rqWn30Wk3EGAQUXjMv9qzHzeS9HZW84aCchLTx7z rjCtWYtvbstZ5kLW9dWWZ2LxKYLikhhoy9Az+gDqkECqlXaBHJXRaq7rxAXKJnPf 0TqLfsk1fp+1uXOPwyFb6P2D0JEwIUgXVsNfUfAN9hX28= 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:X-ExtLoop1:Received:Received:Date:From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=aKkZP1cySq9uFF+tuSGWiasqGkHIae4Cnlr6NAaF0iq1zk0nl2C2T+MHnDeTjK akssA3D7bygPhMtiKeyCWAg7LWu1EyIU5gWJG/tDaVpOnYs9NJJyI7WdkS6n1fnV 13J23xAr71+P2GlDBUaMqhP0ZUfvYR81rMwjF/pGExr5Q=; Received: (qmail 30510 invoked by alias); 2 Mar 2012 20:59:04 -0000 Received: (qmail 30488 invoked by uid 22791); 2 Mar 2012 20:59:03 -0000 X-SWARE-Spam-Status: No, hits=-4.2 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 mga03.intel.com (HELO mga03.intel.com) (143.182.124.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 20:58:51 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 02 Mar 2012 12:58:50 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by azsmga001.ch.intel.com with ESMTP; 02 Mar 2012 12:58:50 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 21BB2C186C; Fri, 2 Mar 2012 12:58:50 -0800 (PST) Date: Fri, 2 Mar 2012 12:58:50 -0800 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org, Uros Bizjak , Richard Henderson Subject: [PATCH 06/10] addr32: Check Pmode to set adjust_stack_insn Message-ID: <20120302205850.GD2179@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 Since stack register may be in SImode for TARGET_64BIT, this patch checks Pmode to set adjust_stack_insn. OK for trunk? Thanks. H.J. --- 2012-03-02 H.J. Lu * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set adjust_stack_insn. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d6ec6ff..47fa36a 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -10338,7 +10338,7 @@ ix86_expand_prologue (void) emit_insn (ix86_gen_allocate_stack_worker (eax, eax)); /* Use the fact that AX still contains ALLOCATE. */ - adjust_stack_insn = (TARGET_64BIT + adjust_stack_insn = (Pmode == DImode ? gen_pro_epilogue_adjust_stack_di_sub : gen_pro_epilogue_adjust_stack_si_sub);