[patch committed] Fix PR target/24713

Julian Brown julian@codesourcery.com
Tue May 13 13:01:00 GMT 2008


Hi,

On Tue, 13 May 2008 08:25:18 +0900 (JST)
Kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:

> The attached patch is to fix PR target/24713:
> 
>   objc/execute/exceptions/foward-1.m fails on sh-elf with -O3
>   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24713
> 
> sh-elf compiler generates a wrong frame info for libobjc/sendmsg.c:
> __objc_word_forward in the problematic case and it results a bad
> stack pointer value when -fomit-frame-pointer is specified.
> The patch is tested with bootstrap and the top level "make -k check"
> on sh4-unknown-linux-gnu with no new failures.
> Committed on trunk.

I think this may be related to the bug mentioned in the thread:

  http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00551.html

I might well be wrong, but another thing to look at might be defining
the EH_USES macro for SH in some suitable way. If you do that, you'll
need to test alongside the patch in the above email too (it's not yet
committed, pending partial review and an earlier patch).

HTH,

Julian



More information about the Gcc-patches mailing list