This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] SH: DWARF2 exception handling
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org, aoliva at redhat dot com, stephen dot clarke at earthling dot net, gcc at gcc dot gnu dot org
- Date: Tue, 12 Nov 2002 17:45:44 +0000
- Subject: Re: [PATCH/RFA] SH: DWARF2 exception handling
- Organization: SuperH UK Ltd.
- References: <200208212230.g7LMUYN19120@r-rr.iij4u.or.jp>
kaz Kojima wrote:
>
> Hi,
>
> This patch is mainly for exception handling using DWARF2 on
> sh-linux targets.
> Bootstrapped and no new regressions on sh4-unknown-linux-gnu.
> I'm not certain this is ok for sh64-linux. Steve, does this
> work for you?
Sorry this took so long, I thought Steve would be looking at this.
Please describe the purpose of all the changes.
New functions should also have comments at the top to describe what
they do.
It seems that you actually know sh-linux (for SH1 .. SH4) better
than me. Would you be interested in becoming a gcc sub-maintainer
for sh-linux?
> * config/sh/sh.c (push_reg): Push PR_MEDIA_REG last.
This bit doesn't make sense. push_regs is not executed for TARGET_SH5.
> * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
I just happened to find this independently last week - it is also needed
to get valid call frame debugging information.
> Don't abort even if the number is mapped to -1.
Why? When is that expected to be valid?
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658