X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=boehm-gc%2Fconfigure.host;h=da2b5b31a0e9c1a91d60f94003da3e839dbac233;hb=0753f1b5364c4fe7169b9a836b0bc365ffd31300;hp=1903242fec40709f611358ae2ac9dd1776ee9f53;hpb=22b297cdeaa7704bc964a76562dcf8aed710c2bb;p=pf3gnuchains%2Fgcc-fork.git diff --git a/boehm-gc/configure.host b/boehm-gc/configure.host index 1903242fec4..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= +# 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.