summaryrefslogtreecommitdiff
path: root/boehm-gc/configure.host
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-18 01:04:43 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-18 01:04:43 +0000
commit8fee6c5ba203062646a84ef04770c79ba2be0a6a (patch)
tree0a038d94cc4acd44c0926f011247f6b7969fa84b /boehm-gc/configure.host
parent75ae025532a15d2842c5401959ef6775e3ebe550 (diff)
downloadgcc-8fee6c5ba203062646a84ef04770c79ba2be0a6a.tar.gz
* Makefile.am, acinclude.m4, configure.in: Imported GC 6.0 and
merged local changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/configure.host')
-rw-r--r--boehm-gc/configure.host20
1 files changed, 15 insertions, 5 deletions
diff --git a/boehm-gc/configure.host b/boehm-gc/configure.host
index 323668dd33a..da2b5b31a0e 100644
--- a/boehm-gc/configure.host
+++ b/boehm-gc/configure.host
@@ -1,6 +1,7 @@
# configure.host
-# This shell script handles all host based configuration for boehm_gc.
+# This shell script handles all host based configuration for the garbage
+# collector.
# It sets various shell variables based on the the host and the
# configuration options. You can modify this shell script without
# needing to rerun autoconf.
@@ -15,16 +16,25 @@
# target_optspace --enable-target-optspace ("yes", "no", "")
# It sets the following shell variables:
-# boehm_gc_cflags Special CFLAGS to use when building
+# gc_cflags Special CFLAGS to use when building
-boehm_gc_cflags=-fexceptions
+# We should set -fexceptions if we are using gcc and might be used
+# inside something like gcj. This is the zeroth approximation:
+case "$host" in
+ *-*-linux* )
+ gc_cflags=-fexceptions
+ ;;
+ *-*-hpux* )
+ gc_cflags=+ESdbgasm
+ ;;
+esac
case "${target_optspace}:${host}" in
yes:*)
- boehm_gc_cflags="${boehm_gc_cflags} -Os"
+ gc_cflags="${gc_cflags} -Os"
;;
:m32r-* | :d10v-* | :d30v-*)
- boehm_gc_cflags="${boehm_gc_cflags} -Os"
+ gc_cflags="${gc_cflags} -Os"
;;
no:* | :*)
# Nothing.