------- Comment #36 from iains at gcc dot gnu dot org 2010-06-03 16:08 ------- (In reply to comment #35) > Extracted from x86_64-apple-darwin10.3.0/libjava/testsuite/libjava.log: > > ... > set_ld_library_path_env_vars: > ld_library_path=.:/opt/gcc/build_w/x86_64-apple-darwin10.3.0/./libjava/.libs > invoke: /opt/gcc/build_w/x86_64-apple-darwin10.3.0/./libjava/gij -jar > /opt/gcc/work/libjava/testsuite/libjava.jar/TestClosureGC.jar > Setting LD_LIBRARY_PATH to > .:/opt/gcc/build_w/x86_64-apple-darwin10.3.0/./libjava/.libs:.:/opt/gcc/build_w/x86_64-apple-darwin10.3.0/./libjava/.libs > Exception in thread "main" java.lang.NullPointerException > at TestClosureGC.main(TestClosureGC.java:108) > FAIL: /opt/gcc/work/libjava/testsuite/libjava.jar/TestClosureGC.jar execution > - > gij test > UNTESTED: /opt/gcc/work/libjava/testsuite/libjava.jar/TestClosureGC.jar output > - gij test > ... > > Note the failures occur only with -m64, not with -m32.
OK, libjava uses __thread so I need to investigate what's happening there; However, java is not using the emutls facility from its FE (AFAICT). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44132