X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=boehm-gc%2Fconfigure.host;h=97f4dacb6deef195b42e58e165ccac5d447a9d28;hb=b858c3e7c9f16ccab79a617e2fb34c51b0dc921b;hp=323668dd33a64d9e48a136951895eff11fdbf6fa;hpb=0d489dae6cc0356ddfeaaf78805bf015486b543e;p=pf3gnuchains%2Fgcc-fork.git diff --git a/boehm-gc/configure.host b/boehm-gc/configure.host index 323668dd33a..97f4dacb6de 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. @@ -13,18 +14,44 @@ # host The configuration host # host_cpu The configuration host CPU # target_optspace --enable-target-optspace ("yes", "no", "") +# GCC should be "yes" if using gcc # It sets the following shell variables: -# boehm_gc_cflags Special CFLAGS to use when building +# gc_cflags Special CFLAGS to use when building +# gc_use_mmap Set to "yes" on platforms where mmap should be used instead +# of sbrk. This will define USE_MMAP. -boehm_gc_cflags=-fexceptions +gc_cflags="" +gc_use_mmap= + +# We should set -fexceptions if we are using gcc and might be used +# inside something like gcj. This is the zeroth approximation: +if test :"$GCC": = :yes: ; then + gc_cflags="${gc_cflags} -fexceptions" +else + case "$host" in + hppa*-*-hpux* ) + if test :$GCC: != :"yes": ; then + gc_cflags="${gc_flags} +ESdbgasm" + fi + # :TODO: actaully we should check using Autoconf if + # the compiler supports this option. + ;; + esac +fi + +case "${host}" in + *-linux*) + gc_use_mmap=yes + ;; +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. @@ -36,7 +63,7 @@ esac case "${host}" in mips-tx39-*|mipstx39-unknown-*) - boehm_gc_cflags="${boehm_gc_cflags} -G 0" + gc_cflags="${gc_cflags} -G 0" ;; *) ;;