From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22683 invoked by alias); 7 Mar 2012 20:11:29 -0000 Received: (qmail 22675 invoked by uid 22791); 7 Mar 2012 20:11:28 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from usmamail.tilera.com (HELO USMAMAIL.TILERA.COM) (206.83.70.75) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Mar 2012 20:11:16 +0000 Received: from [127.0.0.1] (10.9.0.23) by USMAExch2.tad.internal.tilera.com (10.3.0.33) with Microsoft SMTP Server (TLS) id 14.0.694.0; Wed, 7 Mar 2012 15:11:14 -0500 Message-ID: <4F57C0E2.7040007@tilera.com> Date: Wed, 07 Mar 2012 20:11:00 -0000 From: Walter Lee User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Subject: Re: [committed] TILE-Gx/TILEPro: unwind fix for dynamic frames References: <201203071801.q27I1YWm017484@farm-0039.internal.tilera.com> In-Reply-To: <201203071801.q27I1YWm017484@farm-0039.internal.tilera.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg00528.txt.bz2 On 3/7/2012 1:01 PM, Walter Lee wrote: > > This patch fixes an unwinding bug for functions with dynamic stack > frames. We stop generating REG_CFA_* notes for stack pointer, and at > the end of unwinding we restore the stack pointer by adjusting it by > EH_RETURN_STACKADJ_RTX. I forgot to attach the ChangeLog: * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate REG_CFA_* notes for the stack pointer. (tilegx_expand_epilogue): Restore stack pointer by adjusting it by EH_RETURN_STACKADJ_RTX. * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't generate REG_CFA_* notes for the stack pointer. (tilepro_expand_epilogue): Restore stack pointer by adjusting it by EH_RETURN_STACKADJ_RTX. Walter