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]
Other format: [Raw text]

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


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