OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [boehm-gc/] [configure.host] - Diff between revs 721 and 783

Only display areas with differences | Details | Blame | View Log

Rev 721 Rev 783
# configure.host
# configure.host
# This shell script handles all host based configuration for the garbage
# This shell script handles all host based configuration for the garbage
# collector.
# collector.
# It sets various shell variables based on the the host and the
# It sets various shell variables based on the the host and the
# configuration options.  You can modify this shell script without
# configuration options.  You can modify this shell script without
# needing to rerun autoconf.
# needing to rerun autoconf.
# This shell script should be invoked as
# This shell script should be invoked as
#   . configure.host
#   . configure.host
# If it encounters an error, it will exit with a message.
# If it encounters an error, it will exit with a message.
# It uses the following shell variables:
# It uses the following shell variables:
#   host                The configuration host
#   host                The configuration host
#   host_cpu            The configuration host CPU
#   host_cpu            The configuration host CPU
#   target_optspace     --enable-target-optspace ("yes", "no", "")
#   target_optspace     --enable-target-optspace ("yes", "no", "")
#   GCC                 should be "yes" if using gcc
#   GCC                 should be "yes" if using gcc
# It sets the following shell variables:
# It sets the following shell variables:
#   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
#   gc_use_mmap  Set to "yes" on platforms where mmap should be used instead
#                of sbrk. This will define USE_MMAP.
#                of sbrk. This will define USE_MMAP.
gc_cflags=""
gc_cflags=""
gc_use_mmap=
gc_use_mmap=
# We should set -fexceptions if we are using gcc and might be used
# We should set -fexceptions if we are using gcc and might be used
# inside something like gcj.  This is the zeroth approximation:
# inside something like gcj.  This is the zeroth approximation:
if test :"$GCC": = :yes: ; then
if test :"$GCC": = :yes: ; then
    gc_cflags="${gc_cflags} -fexceptions"
    gc_cflags="${gc_cflags} -fexceptions"
else
else
    case "$host" in
    case "$host" in
        hppa*-*-hpux* )
        hppa*-*-hpux* )
        if test :$GCC: != :"yes": ; then
        if test :$GCC: != :"yes": ; then
            gc_cflags="${gc_flags} +ESdbgasm"
            gc_cflags="${gc_flags} +ESdbgasm"
        fi
        fi
        # :TODO: actaully we should check using Autoconf if
        # :TODO: actaully we should check using Autoconf if
        #     the compiler supports this option.
        #     the compiler supports this option.
        ;;
        ;;
    esac
    esac
fi
fi
case "${host}" in
case "${host}" in
  *-linux*)
  *-linux*)
    gc_use_mmap=yes
    gc_use_mmap=yes
    ;;
    ;;
esac
esac
case "${target_optspace}:${host}" in
case "${target_optspace}:${host}" in
  yes:*)
  yes:*)
    gc_cflags="${gc_cflags} -Os"
    gc_cflags="${gc_cflags} -Os"
    ;;
    ;;
  :m32r-* | :d10v-* | :d30v-*)
  :m32r-* | :d10v-* | :d30v-*)
    gc_cflags="${gc_cflags} -Os"
    gc_cflags="${gc_cflags} -Os"
    ;;
    ;;
  no:* | :*)
  no:* | :*)
    # Nothing.
    # Nothing.
    ;;
    ;;
esac
esac
# Set any host dependent compiler flags.
# Set any host dependent compiler flags.
# THIS TABLE IS SORTED.  KEEP IT THAT WAY.
# THIS TABLE IS SORTED.  KEEP IT THAT WAY.
case "${host}" in
case "${host}" in
  mips-tx39-*|mipstx39-unknown-*)
  mips-tx39-*|mipstx39-unknown-*)
        gc_cflags="${gc_cflags} -G 0"
        gc_cflags="${gc_cflags} -G 0"
        ;;
        ;;
  *)
  *)
        ;;
        ;;
esac
esac
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.