This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: darwin & libgcj ?
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Andreas Tobler <toa at pop dot agri dot ch>, <java at gcc dot gnu dot org>
- Date: Mon, 6 Jan 2003 12:12:12 -0500 (EST)
- Subject: Re: darwin & libgcj ?
On Mon, 6 Jan 2003, Andrew Haley wrote:
> Okay. Throw_2 failures on their own usually indicate that null
> pointer exceptions in CNI code don't work, and that's because
> -fcheck-references is being used.
Good call. It looks like Darwin doesn't throw SIGSEGV when deferencing a
null pointer, but something else:
Program received signal EXC_BAD_ACCESS, Could not access memory.
java::lang::Double::parseDouble(java::lang::String*) (str=0x0) at
java/lang/String.h:50
50 jint length () { return count; }
> However, powerpc* in config.host
> doesn't seem to use this option -- it sets can_unwind_signal. Most
> odd.
It's getting -fcheck-references all right, perhaps from here:
# If we are non using SJLJ exceptions, and this host does not have support
# for unwinding from a signal handler, enable checked dereferences and
divides.
if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
CHECKREFSPEC=-fcheck-references
DIVIDESPEC=-fuse-divide-subroutine
EXCEPTIONSPEC=
fi
Jeff