From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27302 invoked by alias); 10 May 2002 04:54:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 27234 invoked from network); 10 May 2002 04:54:07 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 10 May 2002 04:54:07 -0000 Received: from free.redhat.lsd.ic.unicamp.br (vpn3-6.sfbay.redhat.com [172.16.25.6]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g4A4qhv28790; Thu, 9 May 2002 21:52:43 -0700 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.11.6/8.11.6) id g4A4rkB05875; Fri, 10 May 2002 01:53:46 -0300 To: joern.rennecke@st.com Cc: ac131313@cygnus.com, ezannoni@redhat.com, gcc@gcc.gnu.org, gdb@sources.redhat.com, bje@redhat.com Subject: Re: SH5 compact register numbering in gcc -> gdb interface References: <3CCED903.294513BE@st.com> <15568.36275.110744.510692@localhost.redhat.com> <3CD12BF8.7E1650C1@st.com> <3CD7EB51.7816DD1@st.com> <3CD803BC.5060900@cygnus.com> <3CD82502.C3A8695C@st.com> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Thu, 09 May 2002 22:53:00 -0000 In-Reply-To: <3CD82502.C3A8695C@st.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-05/txt/msg00740.txt.bz2 On May 7, 2002, Joern Rennecke wrote: > ac131313@cygnus.com wrote: >> Humor me here. >> >> How do you use dwarf2 cfi to unwind a compact register (saved on the >> stack) back to a media register? In addition to the address of the >> saved register you'll need to know that only part of the register was >> saved. Does CFI describe this? > P.S.: It is not trivial to make gcc emit different register numbers > for different sizes, but for prologue cfi, that can be done by > attaching a REG_FRAME_RELATED_EXPR note referring to a different > register number when emitting the prologue. But under this design, if we moved to a more efficient exception handling mechanism, how would throw() know whether to restore the SHcompact or the SHmedia register before returning to the exception landing pad? -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer