Commit 605dc89b by Bryce McKinlay Committed by Bryce McKinlay

configure.host: Set can_unwind_signal on hosts which support it.

	* configure.host: Set can_unwind_signal on hosts which support it.
	Don't set CHECKREFSPEC and DIVIDESPEC for FreeBSD.
	* configure.in: Set CHECKREFSPEC and DIVIDESPEC if not using SJLJ
	exceptions and can_unwind_signal isn't set.
	* configure: Rebuilt.

From-SVN: r52193
parent 5b8fcab6
2002-04-11 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* configure.host: Set can_unwind_signal on hosts which support it.
Don't set CHECKREFSPEC and DIVIDESPEC for FreeBSD.
* configure.in: Set CHECKREFSPEC and DIVIDESPEC if not using SJLJ
exceptions and can_unwind_signal isn't set.
* configure: Rebuilt.
2002-04-11 Tom Tromey <tromey@redhat.com> 2002-04-11 Tom Tromey <tromey@redhat.com>
* win32.cc (_Jv_platform_initProperties): Fix spelling of _Jv_Free. * win32.cc (_Jv_platform_initProperties): Fix spelling of _Jv_Free.
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
# sysdeps_dir Directory containing system-dependent headers # sysdeps_dir Directory containing system-dependent headers
# slow_pthread_self The synchronization code should try to avoid # slow_pthread_self The synchronization code should try to avoid
# pthread_self calls by caching thread IDs in a hashtable # pthread_self calls by caching thread IDs in a hashtable
# can_unwind_signal Set to "yes" if the EH unwinder supports throwing
# from a signal handler.
libgcj_flags= libgcj_flags=
libgcj_cflags= libgcj_cflags=
...@@ -36,6 +38,7 @@ enable_java_net_default=yes ...@@ -36,6 +38,7 @@ enable_java_net_default=yes
enable_hash_synchronization_default=no enable_hash_synchronization_default=no
sysdeps_dir=generic sysdeps_dir=generic
slow_pthread_self= slow_pthread_self=
can_unwind_signal=no
case "${target_optspace}:${host}" in case "${target_optspace}:${host}" in
yes:*) yes:*)
...@@ -115,18 +118,21 @@ case "${host}" in ...@@ -115,18 +118,21 @@ case "${host}" in
esac esac
# This case statement supports generic port properties and may refine # This case statement supports generic port properties and may refine
# the above per-CPU defaults. Note: If your OS does not implement # the above per-CPU defaults. Note: If your OS implements
# MD_FALLBACK_FRAME_STATE_FOR, then you may want to set CHECKREFSPEC, # MD_FALLBACK_FRAME_STATE_FOR, then you want to set can_unwind_signal
# DIVIDESPEC (to fix >20 test cases) and EXCEPTIONSPEC (to reduce EH # here.
# bloat only) here.
case "${host}" in case "${host}" in
i[34567]86*-linux* | \
powerpc*-linux* | \
alpha*-linux* | \
ia64-*)
can_unwind_signal=yes
;;
*-*-darwin*) *-*-darwin*)
enable_hash_synchronization_default=no enable_hash_synchronization_default=no
slow_pthread_self= slow_pthread_self=
;; ;;
*-*-freebsd*) *-*-freebsd*)
DIVIDESPEC=-fuse-divide-subroutine
CHECKREFSPEC=-fcheck-references
slow_pthread_self= slow_pthread_self=
;; ;;
esac esac
......
...@@ -153,6 +153,14 @@ fi ...@@ -153,6 +153,14 @@ fi
AC_LANG_RESTORE AC_LANG_RESTORE
AC_MSG_RESULT($ac_exception_model_name) AC_MSG_RESULT($ac_exception_model_name)
# 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
dnl See if the user wants to disable java.net. This is the mildly dnl See if the user wants to disable java.net. This is the mildly
dnl ugly way that we admit that target-side configuration sucks. dnl ugly way that we admit that target-side configuration sucks.
AC_ARG_ENABLE(java-net, AC_ARG_ENABLE(java-net,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment