This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Hello world segfaults with -static


Hello Bryce,

On Thu, Oct 11, 2001 at 12:43:27PM +1300, Bryce McKinlay wrote:
> Boehm, Hans wrote:
> 
> >That's a new one for me.  And I don't have clue as to how that could happen.
> >With only a single entry in the table, GC_next_exclusion should return
> >either 0 or the address of the zeroth entry in GC_excl_table.  It looks to
> >me like next_index can be only 0 or 1.
> >
> >Can you build mark_rts.c unoptimized?  If that still breaks, can you step
> >through GC_exclude_static_roots to see where I'm wrong?
> >
> 
> I noticed this a few weeks ago. It does appear to be an optimization bug 
> in GCC, since rebuilding the GC without -O fixed it.

You are right. I rebuilt boehm-gc without -O2 and everything is fine again.
Strange. Does anybody have a small testcase for the gcc people?

Thanks for all the replies
Martin.

-- 
The early bird catches the worm. If you want something else for       
breakfast, get up later.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]