This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libjava failed to build on Linux/x86
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> I suspect a non-gcj compiler bug. I built code with a compiler which
Tom> was current as of last week sometime. I imagine some bug was
Tom> introduced or revealed between then and now. I've updated and I'm
Tom> rebuilding to see if I can reproduce the problem here.
I reproduced the crash here.
I've appended a stack trace.
The proximate problem is that `e->dest' is 0.
This is really outside my area of expertise. All I know is that this
was working fine with the Jan 4 compiler.
Tom
Program received signal SIGSEGV, Segmentation fault.
0x0826d2f7 in find_unreachable_blocks () at ../../gcc/gcc/cfganal.c:363
363 if (!(e->dest->flags & BB_REACHABLE))
(gdb) bt
#0 0x0826d2f7 in find_unreachable_blocks () at ../../gcc/gcc/cfganal.c:363
#1 0x08271f51 in delete_unreachable_blocks ()
at ../../gcc/gcc/cfgcleanup.c:1715
#2 0x08271fca in cleanup_cfg (mode=0) at ../../gcc/gcc/cfgcleanup.c:1743
#3 0x08231de9 in rest_of_compilation (decl=0x4014df68)
at ../../gcc/gcc/toplev.c:3270
#4 0x08061a4c in source_end_java_method () at parse.y:7457
#5 0x08063935 in java_expand_method_bodies (class=0x857ef44) at parse.y:8133
#6 0x0806677d in java_expand_classes () at parse.y:9024
#7 0x080a9a1f in yyparse () at ../../gcc/gcc/java/jcf-parse.c:1207
#8 0x08230384 in compile_file () at ../../gcc/gcc/toplev.c:2122
#9 0x08235ae9 in do_compile () at ../../gcc/gcc/toplev.c:5177
#10 0x08235b4b in toplev_main (argc=0, argv=0x0) at ../../gcc/gcc/toplev.c:5209
#11 0x080bb3fb in main (argc=0, argv=0x0) at ../../gcc/gcc/main.c:35
#12 0x400349cb in __libc_start_main (main=0x80bb3e0 <main>, argc=24,
argv=0xbffff644, init=0x8049328 <_init>, fini=0x82f4e38 <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff63c)
at ../sysdeps/generic/libc-start.c:92