The following is reduced from the report here: http://gcc.gnu.org/ml/gcc-regression/2005-09/msg00002.html cc1plus -fnon-call-exceptions t.cc is all that needed to reproduce the bug. ---- struct JvSynchronize { ~JvSynchronize (); }; struct _Jv_Field { char* addr; }; _Jv_Field * resolve_pool_entry (void); void * _Jv_ResolvePoolEntry (void) { JvSynchronize sync; return (resolve_pool_entry ())->addr; } -----
A little more reduced: struct JvSynchronize { ~JvSynchronize (); }; char* * resolve_pool_entry (void); void * _Jv_ResolvePoolEntry (void) { JvSynchronize sync; return *(resolve_pool_entry ()); }
Also reprodicible on ppc-linux.
Subject: Bug 23676 CVSROOT: /cvs/gcc Module name: gcc Changes by: rth@gcc.gnu.org 2005-09-01 23:35:20 Modified files: gcc : ChangeLog reload1.c rtlanal.c Log message: PR 23676 * reload1.c (reload_as_needed): Check !CALL_P before calling fixup_eh_region_note. * rtlanal.c (may_trap_p): SUBREG by itself cannot trap. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9878&r2=2.9879 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/reload1.c.diff?cvsroot=gcc&r1=1.480&r2=1.481 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/rtlanal.c.diff?cvsroot=gcc&r1=1.218&r2=1.219
Fixed.
*** Bug 23696 has been marked as a duplicate of this bug. ***
Created attachment 9654 [details] testcase There is yet another "missing REG_EH_REGION note in the end of bb" ICE for sh4-unknown-linux-gnu during libjava build. I've attached a reduced preprocessed file, though it could be a new PR.
(In reply to comment #6) > Created an attachment (id=9654) > testcase > > There is yet another "missing REG_EH_REGION note in the end of bb" > ICE for sh4-unknown-linux-gnu during libjava build. I've attached > a reduced preprocessed file, though it could be a new PR. Please file a new bug, as this is more likely a target bug.
Subject: Re: [4.1 Regression] ICE: "missing REG_EH_REGION note in the end of bb" On Fri, Sep 02, 2005 at 10:31:21PM -0000, kkojima at gcc dot gnu dot org wrote: > There is yet another "missing REG_EH_REGION note in the end of bb" > ICE for sh4-unknown-linux-gnu during libjava build. I've attached > a reduced preprocessed file, though it could be a new PR. It's a different problem. According to the backtrace, this happens in optimize_mode_switching, and not in reload at all. I'll look at it, but please file it as a new bug. r~
I've filed a PR 23706 for it.
*** Bug 23712 has been marked as a duplicate of this bug. ***