summaryrefslogtreecommitdiff
path: root/libjava/configure.in
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-12 01:14:33 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-12 01:14:33 +0000
commita848664f3b9c2aecdfbc799370beea25a03236fd (patch)
treedb21f7a825036682cd8a72fd0641aef07525f350 /libjava/configure.in
parent463e830eefae8463b465613507e40e8025940b04 (diff)
downloadgcc-a848664f3b9c2aecdfbc799370beea25a03236fd.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index 767ea0ebd54..65e13a6b908 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -153,6 +153,14 @@ fi
AC_LANG_RESTORE
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 ugly way that we admit that target-side configuration sucks.
AC_ARG_ENABLE(java-net,