aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.host
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>2002-04-12 01:14:33 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2002-04-12 02:14:33 +0100
commit605dc89b0e2bc3f4f3459aea84ab5d77a2511465 (patch)
treedb21f7a825036682cd8a72fd0641aef07525f350 /libjava/configure.host
parent5b8fcab634b94bf988453f93c0c8c413781b26b4 (diff)
downloadgcc-605dc89b0e2bc3f4f3459aea84ab5d77a2511465.zip
gcc-605dc89b0e2bc3f4f3459aea84ab5d77a2511465.tar.gz
gcc-605dc89b0e2bc3f4f3459aea84ab5d77a2511465.tar.bz2
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
Diffstat (limited to 'libjava/configure.host')
-rw-r--r--libjava/configure.host18
1 files changed, 12 insertions, 6 deletions
diff --git a/libjava/configure.host b/libjava/configure.host
index 0a98be9..5eac4d3 100644
--- a/libjava/configure.host
+++ b/libjava/configure.host
@@ -26,6 +26,8 @@
# sysdeps_dir Directory containing system-dependent headers
# slow_pthread_self The synchronization code should try to avoid
# 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_cflags=
@@ -36,6 +38,7 @@ enable_java_net_default=yes
enable_hash_synchronization_default=no
sysdeps_dir=generic
slow_pthread_self=
+can_unwind_signal=no
case "${target_optspace}:${host}" in
yes:*)
@@ -115,18 +118,21 @@ case "${host}" in
esac
# This case statement supports generic port properties and may refine
-# the above per-CPU defaults. Note: If your OS does not implement
-# MD_FALLBACK_FRAME_STATE_FOR, then you may want to set CHECKREFSPEC,
-# DIVIDESPEC (to fix >20 test cases) and EXCEPTIONSPEC (to reduce EH
-# bloat only) here.
+# the above per-CPU defaults. Note: If your OS implements
+# MD_FALLBACK_FRAME_STATE_FOR, then you want to set can_unwind_signal
+# here.
case "${host}" in
+ i[34567]86*-linux* | \
+ powerpc*-linux* | \
+ alpha*-linux* | \
+ ia64-*)
+ can_unwind_signal=yes
+ ;;
*-*-darwin*)
enable_hash_synchronization_default=no
slow_pthread_self=
;;
*-*-freebsd*)
- DIVIDESPEC=-fuse-divide-subroutine
- CHECKREFSPEC=-fcheck-references
slow_pthread_self=
;;
esac