2003-05-23 10:31:07 +08:00
|
|
|
# configure.host
|
2002-06-19 03:07:12 +08:00
|
|
|
#
|
2003-05-23 10:31:07 +08:00
|
|
|
# This shell script handles all host based configuration for libstdc++.
|
|
|
|
# It sets various shell variables based on the the host and the
|
2002-06-19 03:07:12 +08:00
|
|
|
# configuration options. You can modify this shell script without needing
|
|
|
|
# to rerun autoconf/aclocal/etc. This file is "sourced" not executed.
|
|
|
|
#
|
|
|
|
# You should read docs/html/17_intro/porting.* to make sense of this file.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# It uses the following shell variables as set by config.guess:
|
2003-05-23 10:31:07 +08:00
|
|
|
# host The configuration host (full CPU-vendor-OS triplet)
|
|
|
|
# host_cpu The configuration host CPU
|
|
|
|
# host_os The configuration host OS
|
2002-06-19 03:07:12 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# It sets the following shell variables:
|
|
|
|
#
|
|
|
|
# cpu_include_dir CPU-specific directory, defaults to cpu/generic
|
2004-07-11 15:46:21 +08:00
|
|
|
# if cpu/host_cpu doesn't exist. This is not used
|
|
|
|
# directly, but sets the default for others.
|
2002-06-19 03:07:12 +08:00
|
|
|
#
|
|
|
|
# os_include_dir OS-specific directory, defaults to os/generic.
|
|
|
|
#
|
2007-03-23 00:43:41 +08:00
|
|
|
# c_model the "C" header model, defaults to c_global.
|
2002-06-21 03:08:42 +08:00
|
|
|
#
|
2002-07-09 03:41:57 +08:00
|
|
|
# c_compatibility if "C" compatibility headers are necessary,
|
2003-06-14 13:38:04 +08:00
|
|
|
# defaults to no.
|
2002-06-19 03:07:12 +08:00
|
|
|
#
|
2003-06-14 13:38:04 +08:00
|
|
|
# abi_baseline_pair directory name for ABI compat testing,
|
|
|
|
# defaults to host_cpu-host_os (as per config.guess)
|
2002-08-24 03:33:41 +08:00
|
|
|
#
|
2011-07-08 16:49:57 +08:00
|
|
|
# abi_baseline_subdir_switch
|
|
|
|
# g++ switch to determine ABI baseline subdir for
|
|
|
|
# multilibbed targets,
|
|
|
|
# defaults to --print-multi-directory
|
|
|
|
#
|
2004-07-11 15:46:21 +08:00
|
|
|
# abi_tweaks_dir location of cxxabi_tweaks.h,
|
|
|
|
# defaults to cpu_include_dir
|
|
|
|
#
|
2004-02-27 08:49:50 +08:00
|
|
|
# atomicity_dir location of atomicity.h,
|
2003-06-14 13:38:04 +08:00
|
|
|
# defaults to cpu_include_dir
|
2002-09-26 13:25:14 +08:00
|
|
|
#
|
2004-02-27 08:49:50 +08:00
|
|
|
# atomic_word_dir location of atomic_word.h
|
|
|
|
# defaults to generic.
|
|
|
|
#
|
2007-09-12 06:32:51 +08:00
|
|
|
# atomic_flags extra flags to pass to use atomic instructions
|
|
|
|
# defaults to nothing.
|
|
|
|
#
|
2005-11-05 17:42:01 +08:00
|
|
|
# cpu_defines_dir location of cpu_defines.h
|
|
|
|
# defaults to generic.
|
|
|
|
#
|
2012-09-26 21:10:26 +08:00
|
|
|
# cpu_opt_bits_random path name of random.h containing CPU-specific
|
2012-09-17 21:02:39 +08:00
|
|
|
# optimizations
|
2007-09-07 12:18:40 +08:00
|
|
|
#
|
2012-09-26 21:10:26 +08:00
|
|
|
# cpu_opt_ext_random path name of random.h containing CPU-specific
|
|
|
|
# optimizations for extensions
|
|
|
|
#
|
2007-09-07 12:18:40 +08:00
|
|
|
# error_constants_dir location of error_constants.h
|
|
|
|
# defaults to os/generic.
|
|
|
|
#
|
2002-06-19 03:07:12 +08:00
|
|
|
# It possibly modifies the following variables:
|
|
|
|
#
|
|
|
|
# OPT_LDFLAGS extra flags to pass when linking the library, of
|
2003-06-14 13:38:04 +08:00
|
|
|
# the form '-Wl,blah'
|
|
|
|
# (defaults to empty in acinclude.m4)
|
2002-06-19 03:07:12 +08:00
|
|
|
#
|
2003-07-11 12:04:49 +08:00
|
|
|
# port_specific_symbol_files
|
2013-07-05 05:07:44 +08:00
|
|
|
# whitespace-separated list of files containing
|
2003-08-05 10:00:18 +08:00
|
|
|
# additional symbols to export from the shared
|
|
|
|
# library, when symbol versioning is in use
|
2003-07-06 12:07:36 +08:00
|
|
|
#
|
2020-05-16 05:46:08 +08:00
|
|
|
# tmake_file A list of machine-description-specific
|
|
|
|
# makefile fragments.
|
|
|
|
#
|
2002-06-19 03:07:12 +08:00
|
|
|
#
|
|
|
|
# If the defaults will not work for your platform, you need only change the
|
|
|
|
# variables that won't work, i.e., you do not need to explicitly set a
|
2003-05-23 10:31:07 +08:00
|
|
|
# working variable to its default. Most hosts only need to change the two
|
2002-06-19 03:07:12 +08:00
|
|
|
# *_include_dir variables.
|
2000-11-14 07:49:41 +08:00
|
|
|
|
|
|
|
|
2002-06-21 03:08:42 +08:00
|
|
|
# DEFAULTS
|
2002-06-19 03:07:12 +08:00
|
|
|
# Try to guess a default cpu_include_dir based on the name of the CPU. We
|
|
|
|
# cannot do this for os_include_dir; there are too many portable operating
|
|
|
|
# systems out there. :-)
|
2007-03-05 06:59:49 +08:00
|
|
|
c_model=c_global
|
2002-11-02 09:42:22 +08:00
|
|
|
c_compatibility=no
|
2004-02-27 08:49:50 +08:00
|
|
|
atomic_word_dir=cpu/generic
|
2007-09-12 06:32:51 +08:00
|
|
|
atomic_flags=""
|
2006-07-15 06:41:43 +08:00
|
|
|
atomicity_dir="cpu/generic"
|
|
|
|
cpu_defines_dir="cpu/generic"
|
|
|
|
try_cpu=generic
|
2011-07-08 16:49:57 +08:00
|
|
|
abi_baseline_subdir_switch=--print-multi-directory
|
2006-07-15 06:41:43 +08:00
|
|
|
abi_tweaks_dir="cpu/generic"
|
2007-09-07 12:18:40 +08:00
|
|
|
error_constants_dir="os/generic"
|
2020-05-16 05:46:08 +08:00
|
|
|
tmake_file=
|
2002-06-19 03:07:12 +08:00
|
|
|
|
2003-05-23 10:31:07 +08:00
|
|
|
# HOST-SPECIFIC OVERRIDES
|
2002-06-21 03:08:42 +08:00
|
|
|
# Set any CPU-dependent bits.
|
2003-06-14 13:38:04 +08:00
|
|
|
|
2006-07-15 06:41:43 +08:00
|
|
|
# Provide a way to funnel exotic flavors and prefixed/postfixed chip
|
|
|
|
# variants into the established source config/cpu/* sub-directories.
|
2000-11-14 07:49:41 +08:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2003-05-23 10:31:07 +08:00
|
|
|
case "${host_cpu}" in
|
2000-11-14 07:49:41 +08:00
|
|
|
alpha*)
|
2003-06-14 13:38:04 +08:00
|
|
|
try_cpu=alpha
|
2000-11-14 07:49:41 +08:00
|
|
|
;;
|
MAINTAINERS (mt port): Remove.
* MAINTAINERS (mt port): Remove.
(sco5, unixware, sco udk): Remove.
(Kean Johnston): Add to Write After Approval.
fixincludes:
* inclhack.def (AAB_svr4_replace_byteorder,
AAB_ultrix_ansi_compat, AAB_ultrix_limits, AAB_ultrix_memory,
libc1_G_va_list, libc1_ifdefd_memx, nested_motorola,
ptx_sys_mc_param_h, sco_regset, sco_static_func, sco_utime,
solaris_mutex_init_1, solaris_socket, solaris_unistd,
solaris_widec, svr4_krnl, ultrix_atexit_param, ultrix_atof_param,
ultrix_const3, ultrix_fix_fixproto, ultrix_ifdef, ultrix_locale,
ultrix_math_ifdef, ultrix_nested_ioctl, ultrix_nested_svc,
ultrix_stat, ultrix_static, ultrix_stdlib, ultrix_strings,
ultrix_strings2, ultrix_sys_time, ultrix_unistd,
unicosmk_restrict, uw7_byteorder_fix, windiss_math1,
windiss_math2, windiss_valist): Remove.
* fixincl.x: Regenerate.
* mkfixinc.sh: (arm-semi-aof, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i370-*-openedition, i?86-*-moss*, i?86-*-uwin*,
powerpc-*-eabiaix*): Remove.
* tests/base/math.h: Update.
* tests/base/pthread.h: Update.
* tests/base/stdio.h: Update.
* tests/base/stdlib.h: Update.
* tests/base/string.h: Update.
* tests/base/strings.h: Update.
* tests/base/sys/file.h: Update.
* tests/base/sys/limits.h: Update.
* tests/base/sys/socket.h: Update.
* tests/base/sys/stat.h: Update.
* tests/base/sys/time.h: Update.
* tests/base/testing.h: Update.
* tests/base/unistd.h: Update.
* tests/base/_G_config.h: Remove.
* tests/base/arpa: Remove directory.
* tests/base/fs: Remove directory.
* tests/base/locale.h: Remove.
* tests/base/machine: Remove directory.
* tests/base/rpc/svc.h: Remove.
* tests/base/sys/ioctl.h: Remove.
* tests/base/sys/regset.h: Remove.
* tests/base/sys/times.h: Remove.
* tests/base/sys/utsname.h: Remove.
* tests/base/widec.h: Remove.
gcc:
* config.gcc (Obsolete configurations): Remove list of
configurations.
(Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
*-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
targets matched by those patterns.
(strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
Make code for Solaris 7 and greater unconditional for Solaris.
(ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
Remove --with-* handling.
* config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
(LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
LINK_OS_WINDISS_SPEC): Remove.
* config/rs6000/sysv4.opt (mwindiss): Remove.
* configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
* configure: Regenerate.
* doc/cpp.texi: Don't mention BeOS.
* doc/extend.texi (interrupt): Don't mention MS1.
* doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
Remove.
* doc/invoke.texi (MT Options): Remove.
(-mwindiss): Remove.
(CRIS Options): Remove cris-axis-aout references.
(HPPA Options): Don't mention hppa1.1-*-pro.
* doc/md.texi: (MorphoTech family): Remove.
* libgcc2.c: Don't handle UWIN.
* config/alpha/t-unicosmk: Remove.
* config/alpha/unicosmk.h: Remove.
* config/arm/kaos-arm.h: Remove.
* config/arm/kaos-strongarm.h: Remove.
* config/arm/strongarm-coff.h: Remove.
* config/arm/strongarm-elf.h: Remove.
* config/arm/strongarm-pe.h: Remove.
* config/arm/t-strongarm-pe: Remove.
* config/arm/t-xscale-coff: Remove.
* config/arm/t-xscale-elf: Remove.
* config/arm/xscale-coff.h: Remove.
* config/arm/xscale-elf.h: Remove.
* config/chorus.h: Remove.
* config/cris/aout.h: Remove.
* config/cris/aout.opt: Remove.
* config/cris/t-aout: Remove.
* config/i386/beos-elf.h: Remove.
* config/i386/kaos-i386.h: Remove.
* config/i386/ptx4-i.h: Remove.
* config/i386/sco5.h: Remove.
* config/i386/sco5.opt: Remove.
* config/i386/sysv4-cpp.h: Remove.
* config/i386/sysv5.h: Remove.
* config/i386/t-beos: Remove.
* config/i386/t-sco5: Remove.
* config/i386/t-uwin: Remove.
* config/i386/uwin.asm: Remove.
* config/i386/uwin.h: Remove.
* config/kaos.h: Remove.
* config/mips/windiss.h: Remove.
* config/mt: Remove directory.
* config/pa/pa-osf.h: Remove.
* config/pa/pa-pro-end.h: Remove.
* config/pa/t-pro: Remove.
* config/ptx4.h: Remove.
* config/rs6000/beos.h: Remove.
* config/rs6000/kaos-ppc.h: Remove.
* config/rs6000/t-beos: Remove.
* config/rs6000/windiss.h: Remove.
* config/sh/kaos-sh.h: Remove.
* config/sol2-6.h: Remove.
* config/sparc/sol26-sld.h: Remove.
* config/sparc/sysv4-only.h: Remove.
* config/vax/bsd.h: Remove.
* config/vax/t-memfuncs: Remove.
* config/vax/ultrix.h: Remove.
* config/vax/vaxv.h: Remove.
* config/windiss.h: Remove.
gcc/testsuite:
* g++.dg/abi/arm_cxa_vec1.C: Don't handle xscale*-*-*.
* g++.dg/eh/spbp.C: Don't handle *-*-solaris2.[56]*.
* g++.dg/warn/miss-format-1.C: Don't handle Solaris before Solaris
7.
* gcc.c-torture/compile/981006-1.c: Don't handle xscale*-*-*,
strongarm*-*-* and cris-*-aout*.
* gcc.c-torture/execute/941014-1.x: Don't handle xscale*-*-* and
strongarm*-*-*.
* gcc.dg/20030909-1.c: Don't handle xscale*-*-* and
strongarm*-*-*.
* gcc.dg/20031108-1.c: Don't handle xscale*-*-* and
strongarm*-*-*.
* gcc.dg/20040813-1.c: Don't handle *-*-sysv5*.
* gcc.dg/arm-asm.c: Don't handle strongarm*-*-* and xscale*-*-*.
* gcc.dg/arm-scd42-1.c: Use target arm*-*-*.
* gcc.dg/arm-scd42-3.c: Use target arm*-*-*.
* gcc.dg/cpp/assert4.c: Don't handle BeOS.
* gcc.dg/debug/pr35154.c: Don't handle *-*-sysv5*.
* gcc.dg/intmax_t-1.c: Don't handle *-*-solaris2.5.1 and
xscale*-*-elf*.
* gcc.dg/pragma-align.c: Don't handle i?86-*-sco3.2v5*.
* gcc.dg/pthread-init-2.c: Don't handle *-*-solaris2.5.1.
* gcc.misc-tests/arm-isr.exp: Use target arm*-*-*.
* gcc.target/powerpc/ppc-sdata-1.c: Don't handle powerpc-*-sysv*.
* gcc.target/powerpc/ppc-sdata-2.c: Don't handle powerpc-*-sysv*.
* gcc.target/powerpc/ppc-stackalign-1.c: Don't handle
powerpc-*-sysv*.
* gfortran.dg/debug/pr35154-stabs.f: Don't handle *-*-sysv5*.
* lib/target-supports.exp: Don't handle strongarm*-*-elf,
xscale*-*-elf and *-*-windiss.
* obj-c++.dg/dwarf-2.mm: Don't handle *-*-solaris2.[56]*.
* objc.dg/dwarf-1.m: Don't handle *-*-solaris2.[56]*.
* objc.dg/dwarf-2.m: Don't handle *-*-solaris2.[56]*.
* gcc.dg/mt-loopi1.c: Remove.
gnattools:
* configure.ac (xscale*-wrs-vx*, xscale*-wrs-coff): Remove.
* configure: Regenerate.
libcpp:
* configure.ac (parisc*64*-*-*): Remove.
* configure: Regenerate.
libffi:
* configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
powerpc-*-beos*): Remove.
* configure: Regenerate.
libgcc:
* config.host (strongarm*-*-*, ep9312*-*-*, xscale-*-*,
parisc*-*-*, m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
vax-*-ultrix*, xscale-*-elf, xscale-*-coff): Remove.
libjava:
* configure.host (strongarm*-elf, xscale*-elf): Remove.
libstdc++-v3:
* configure.host (xscale, ep9312, m680[246]0, solaris2.5,
solaris2.5.[0-9], solaris2.6, windiss*): Remove.
* crossconfig.m4 (*-solaris2.5, *-solaris2.6, *-windiss*): Remove.
* configure: Regenerate.
* config/os/solaris/solaris2.5: Remove directory.
* config/os/solaris/solaris2.6: Remove directory.
* config/os/windiss: Remove directory.
From-SVN: r136534
2008-06-08 02:00:15 +08:00
|
|
|
arm*)
|
2004-07-11 15:46:21 +08:00
|
|
|
try_cpu=arm
|
|
|
|
;;
|
2007-12-16 05:33:45 +08:00
|
|
|
crisv32)
|
|
|
|
try_cpu=cris
|
|
|
|
;;
|
2003-07-06 12:07:36 +08:00
|
|
|
i[567]86 | x86_64)
|
2003-06-14 13:38:04 +08:00
|
|
|
try_cpu=i486
|
2000-11-14 07:49:41 +08:00
|
|
|
;;
|
2002-11-06 05:24:37 +08:00
|
|
|
hppa*)
|
2003-06-14 13:38:04 +08:00
|
|
|
try_cpu=hppa
|
2002-11-06 05:24:37 +08:00
|
|
|
;;
|
2003-05-06 15:01:25 +08:00
|
|
|
mips*)
|
2006-07-15 06:41:43 +08:00
|
|
|
try_cpu=mips
|
2003-05-06 15:01:25 +08:00
|
|
|
;;
|
2002-07-30 07:26:00 +08:00
|
|
|
powerpc* | rs6000)
|
2003-06-14 13:38:04 +08:00
|
|
|
try_cpu=powerpc
|
2000-11-14 07:49:41 +08:00
|
|
|
;;
|
2002-09-07 02:30:36 +08:00
|
|
|
sparc* | ultrasparc)
|
2003-06-14 13:38:04 +08:00
|
|
|
try_cpu=sparc
|
|
|
|
;;
|
|
|
|
*)
|
2004-07-03 07:40:19 +08:00
|
|
|
if test -d ${glibcxx_srcdir}/config/cpu/${host_cpu}; then
|
2003-06-20 16:10:54 +08:00
|
|
|
try_cpu=${host_cpu}
|
|
|
|
fi
|
2000-11-14 07:49:41 +08:00
|
|
|
esac
|
|
|
|
|
2006-07-15 06:41:43 +08:00
|
|
|
|
|
|
|
# Now look for the file(s) usually tied to a CPU model, and make
|
|
|
|
# default choices for those if they haven't been explicitly set
|
|
|
|
# already.
|
|
|
|
cpu_include_dir=cpu/${try_cpu}
|
|
|
|
|
2004-02-27 08:49:50 +08:00
|
|
|
|
2005-11-05 17:42:01 +08:00
|
|
|
# Set specific CPU overrides for cpu_defines_dir. Most can just use generic.
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
case "${host_cpu}" in
|
2015-05-19 20:47:50 +08:00
|
|
|
arm*)
|
|
|
|
cpu_defines_dir=cpu/arm
|
|
|
|
;;
|
2005-11-05 18:00:55 +08:00
|
|
|
powerpc* | rs6000)
|
2005-11-05 17:42:01 +08:00
|
|
|
cpu_defines_dir=cpu/powerpc
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-06-19 03:07:12 +08:00
|
|
|
|
2007-09-12 06:32:51 +08:00
|
|
|
# Set specific CPU overrides for atomic_word_dir and atomic_flags.
|
|
|
|
# Most can just use generic.
|
2006-07-15 06:41:43 +08:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2006-05-27 20:05:58 +08:00
|
|
|
case "${host_cpu}" in
|
2006-07-15 06:41:43 +08:00
|
|
|
cris*)
|
|
|
|
atomic_word_dir=cpu/cris
|
|
|
|
;;
|
2007-09-18 23:25:39 +08:00
|
|
|
i[4567]86 | x86_64)
|
2007-09-12 06:32:51 +08:00
|
|
|
atomic_flags="-march=native"
|
|
|
|
;;
|
2006-07-15 06:41:43 +08:00
|
|
|
sparc* | ultrasparc)
|
|
|
|
atomic_word_dir=cpu/sparc
|
2007-09-12 06:32:51 +08:00
|
|
|
atomic_flags="-mcpu=v9"
|
2006-05-27 20:05:58 +08:00
|
|
|
;;
|
|
|
|
esac
|
2004-07-03 07:40:19 +08:00
|
|
|
|
2006-07-15 06:41:43 +08:00
|
|
|
|
|
|
|
# Set specific CPU overrides for atomicity_dir.
|
|
|
|
# This can be over-ridden in GLIBCXX_ENABLE_ATOMIC_BUILTINS.
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
if test -f ${glibcxx_srcdir}/config/${cpu_include_dir}/atomicity.h ; then
|
|
|
|
atomicity_dir=$cpu_include_dir
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-07-03 07:40:19 +08:00
|
|
|
if test -f ${glibcxx_srcdir}/config/${cpu_include_dir}/cxxabi_tweaks.h ; then
|
|
|
|
abi_tweaks_dir=$cpu_include_dir
|
|
|
|
fi
|
2002-06-19 03:07:12 +08:00
|
|
|
|
2006-07-15 06:41:43 +08:00
|
|
|
|
2012-09-17 21:02:39 +08:00
|
|
|
# Set directory with CPU-specific optimization
|
|
|
|
cpu_opt_dir=${cpu_include_dir}/opt
|
|
|
|
test -d ${glibcxx_srcdir}/config/${cpu_include_dir}/opt ||
|
|
|
|
cpu_opt_dir=cpu/generic/opt
|
|
|
|
# For each header with CPU-specific optimizations check whether it
|
|
|
|
# exists in ${cpu_opt_dir}. If not, point the variable at the
|
|
|
|
# appropriate file in the generic directory.
|
|
|
|
cpu_opt_ext_random=${cpu_opt_dir}/ext/opt_random.h
|
|
|
|
test -f ${glibcxx_srcdir}/config/${cpu_opt_ext_random} ||
|
|
|
|
cpu_opt_ext_random=cpu/generic/opt/ext/opt_random.h
|
|
|
|
|
2012-09-26 21:10:26 +08:00
|
|
|
cpu_opt_bits_random=${cpu_opt_dir}/bits/opt_random.h
|
|
|
|
test -f ${glibcxx_srcdir}/config/${cpu_opt_ext_random} ||
|
|
|
|
cpu_opt_ext_random=cpu/generic/opt/bits/opt_random.h
|
|
|
|
|
2012-09-17 21:02:39 +08:00
|
|
|
|
2002-06-21 03:08:42 +08:00
|
|
|
# Set any OS-dependent bits.
|
2002-07-09 03:41:57 +08:00
|
|
|
# Set the os_include_dir.
|
2007-09-07 12:18:40 +08:00
|
|
|
# Set the error_costants_dir.
|
2002-06-21 03:08:42 +08:00
|
|
|
# Set c_model, c_compatibility here.
|
|
|
|
# If atomic ops and/or numeric limits are OS-specific rather than
|
|
|
|
# CPU-specifc, set those here too.
|
2000-11-14 07:49:41 +08:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2003-05-23 10:31:07 +08:00
|
|
|
case "${host_os}" in
|
2014-10-30 22:20:50 +08:00
|
|
|
aix[56789]*)
|
|
|
|
# Newer versions of AIX only support PowerPC architecture, so use
|
|
|
|
# atomic instructions directly.
|
|
|
|
os_include_dir="os/aix"
|
2020-05-16 05:46:08 +08:00
|
|
|
tmake_file="os/aix/t-aix"
|
2002-06-19 03:07:12 +08:00
|
|
|
;;
|
|
|
|
aix*)
|
2003-10-20 04:58:22 +08:00
|
|
|
os_include_dir="os/generic"
|
2004-02-27 08:49:50 +08:00
|
|
|
atomicity_dir="cpu/generic"
|
2002-06-19 03:07:12 +08:00
|
|
|
;;
|
2002-10-19 05:22:16 +08:00
|
|
|
bsd*)
|
|
|
|
# Plain BSD attempts to share FreeBSD files.
|
2002-06-19 03:07:12 +08:00
|
|
|
os_include_dir="os/bsd/freebsd"
|
2000-11-14 07:49:41 +08:00
|
|
|
;;
|
2000-11-27 14:04:16 +08:00
|
|
|
cygwin*)
|
2002-06-19 03:07:12 +08:00
|
|
|
os_include_dir="os/newlib"
|
2010-12-06 08:50:04 +08:00
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
|
2002-06-19 03:07:12 +08:00
|
|
|
;;
|
2018-08-25 17:02:28 +08:00
|
|
|
darwin[4-7] | darwin[4-7].*)
|
|
|
|
# For earlier Darwin, performance is improved if libstdc++ is
|
|
|
|
# single-module. Up to at least 10.3.7, -flat_namespace is required
|
|
|
|
# for proper treatment of coalesced symbols.
|
2004-10-26 14:09:05 +08:00
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module -Wl,-flat_namespace"
|
2004-10-30 09:03:12 +08:00
|
|
|
os_include_dir="os/bsd/darwin"
|
2004-10-26 14:09:05 +08:00
|
|
|
;;
|
2018-08-25 17:02:28 +08:00
|
|
|
darwin8 | darwin8.* )
|
|
|
|
# For 8+ compatibility is better if not -flat_namespace.
|
2005-01-14 06:48:14 +08:00
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module"
|
2006-12-03 01:06:57 +08:00
|
|
|
case "${host_cpu}" in
|
|
|
|
i[34567]86 | x86_64)
|
|
|
|
OPTIMIZE_CXXFLAGS="${OPTIMIZE_CXXFLAGS} -fvisibility-inlines-hidden"
|
|
|
|
;;
|
|
|
|
esac
|
2005-01-14 06:48:14 +08:00
|
|
|
os_include_dir="os/bsd/darwin"
|
|
|
|
;;
|
2018-08-25 17:02:28 +08:00
|
|
|
darwin*)
|
|
|
|
# Post Darwin8, defaults should be sufficient.
|
|
|
|
os_include_dir="os/bsd/darwin"
|
|
|
|
;;
|
2002-06-19 03:07:12 +08:00
|
|
|
*djgpp*) # leading * picks up "msdosdjgpp"
|
|
|
|
os_include_dir="os/djgpp"
|
2010-06-10 22:53:15 +08:00
|
|
|
error_constants_dir="os/djgpp"
|
2000-11-27 14:04:16 +08:00
|
|
|
;;
|
2014-05-21 19:08:58 +08:00
|
|
|
dragonfly*)
|
|
|
|
os_include_dir="os/bsd/dragonfly"
|
|
|
|
;;
|
2002-10-19 05:22:16 +08:00
|
|
|
freebsd*)
|
|
|
|
os_include_dir="os/bsd/freebsd"
|
|
|
|
;;
|
2015-04-22 22:24:11 +08:00
|
|
|
linux-musl*)
|
|
|
|
os_include_dir="os/generic"
|
|
|
|
;;
|
2019-09-10 16:13:20 +08:00
|
|
|
gnu* | linux* | kfreebsd*-gnu | uclinux*)
|
2006-02-17 07:29:10 +08:00
|
|
|
if [ "$uclibc" = "yes" ]; then
|
|
|
|
os_include_dir="os/uclibc"
|
2010-06-01 17:54:08 +08:00
|
|
|
elif [ "$bionic" = "yes" ]; then
|
|
|
|
os_include_dir="os/bionic"
|
2006-02-17 07:29:10 +08:00
|
|
|
else
|
|
|
|
os_include_dir="os/gnu-linux"
|
|
|
|
fi
|
2001-01-13 03:39:07 +08:00
|
|
|
;;
|
2002-06-19 03:07:12 +08:00
|
|
|
hpux*)
|
|
|
|
os_include_dir="os/hpux"
|
2000-11-14 07:49:41 +08:00
|
|
|
;;
|
2001-11-09 04:52:29 +08:00
|
|
|
mingw32*)
|
2011-10-14 14:57:55 +08:00
|
|
|
case "$host" in
|
|
|
|
*-w64-*)
|
|
|
|
os_include_dir="os/mingw32-w64"
|
|
|
|
error_constants_dir="os/mingw32-w64"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
os_include_dir="os/mingw32"
|
|
|
|
error_constants_dir="os/mingw32"
|
|
|
|
;;
|
|
|
|
esac
|
2010-12-06 08:50:04 +08:00
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
|
2001-11-09 04:52:29 +08:00
|
|
|
;;
|
2000-12-05 18:29:47 +08:00
|
|
|
netbsd*)
|
2002-06-19 03:07:12 +08:00
|
|
|
os_include_dir="os/bsd/netbsd"
|
2000-12-05 18:29:47 +08:00
|
|
|
;;
|
2012-10-11 07:11:54 +08:00
|
|
|
openbsd*)
|
|
|
|
os_include_dir="os/bsd/openbsd"
|
|
|
|
;;
|
2003-08-05 10:00:18 +08:00
|
|
|
qnx6.[12]*)
|
|
|
|
os_include_dir="os/qnx/qnx6.1"
|
|
|
|
c_model=c
|
|
|
|
;;
|
2016-09-23 14:58:00 +08:00
|
|
|
rtems*)
|
|
|
|
# Use libatomic if necessary and avoid libstdc++ specific atomicity support
|
|
|
|
atomicity_dir="cpu/generic/atomicity_builtins"
|
|
|
|
;;
|
2019-05-15 01:17:23 +08:00
|
|
|
solaris2*)
|
|
|
|
os_include_dir="os/solaris"
|
2011-08-18 22:59:47 +08:00
|
|
|
;;
|
2004-01-27 23:36:22 +08:00
|
|
|
tpf)
|
|
|
|
os_include_dir="os/tpf"
|
|
|
|
;;
|
2020-10-20 18:32:27 +08:00
|
|
|
vxworks*)
|
2003-10-21 02:27:17 +08:00
|
|
|
os_include_dir="os/vxworks"
|
|
|
|
;;
|
2000-11-14 07:49:41 +08:00
|
|
|
*)
|
2002-06-19 03:07:12 +08:00
|
|
|
os_include_dir="os/generic"
|
2000-11-14 07:49:41 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2002-06-21 03:08:42 +08:00
|
|
|
# Set any OS-dependent and CPU-dependent bits.
|
2000-11-14 07:49:41 +08:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2003-05-23 10:31:07 +08:00
|
|
|
case "${host}" in
|
2019-09-10 16:13:20 +08:00
|
|
|
*-*-linux* | *-*-uclinux*)
|
2006-07-15 06:41:43 +08:00
|
|
|
case "${host_cpu}" in
|
|
|
|
i[567]86)
|
|
|
|
abi_baseline_pair=i486-linux-gnu
|
|
|
|
;;
|
2009-02-10 04:24:08 +08:00
|
|
|
mips64*)
|
|
|
|
abi_baseline_pair=mips64-linux-gnu
|
|
|
|
;;
|
2013-06-14 16:40:47 +08:00
|
|
|
powerpc64*)
|
2006-07-15 06:41:43 +08:00
|
|
|
abi_baseline_pair=powerpc64-linux-gnu
|
|
|
|
;;
|
|
|
|
s390)
|
|
|
|
abi_baseline_pair=s390-linux-gnu
|
|
|
|
;;
|
|
|
|
s390x)
|
|
|
|
abi_baseline_pair=s390x-linux-gnu
|
|
|
|
;;
|
2019-02-22 15:25:52 +08:00
|
|
|
sparc64)
|
|
|
|
abi_baseline_pair=sparc64-linux-gnu
|
|
|
|
;;
|
2006-07-15 06:41:43 +08:00
|
|
|
x86_64)
|
|
|
|
abi_baseline_pair=x86_64-linux-gnu
|
|
|
|
;;
|
|
|
|
*)
|
2014-09-30 06:33:41 +08:00
|
|
|
if test $try_cpu = generic; then
|
|
|
|
try_abi_cpu=$host_cpu
|
|
|
|
else
|
|
|
|
try_abi_cpu=$try_cpu
|
|
|
|
fi
|
|
|
|
if test -d ${glibcxx_srcdir}/config/abi/post/${try_abi_cpu}-linux-gnu; then
|
|
|
|
abi_baseline_pair=${try_abi_cpu}-linux-gnu
|
2006-07-15 06:41:43 +08:00
|
|
|
fi
|
|
|
|
esac
|
2008-07-22 03:21:45 +08:00
|
|
|
case "${host}" in
|
2019-09-10 16:13:20 +08:00
|
|
|
arm*-*-linux-* | arm*-*-uclinuxfdpiceabi)
|
2008-07-22 03:21:45 +08:00
|
|
|
port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
|
|
|
|
;;
|
|
|
|
esac
|
2006-07-15 06:41:43 +08:00
|
|
|
;;
|
2015-01-09 22:06:02 +08:00
|
|
|
arm*-*-freebsd*)
|
|
|
|
port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
|
|
|
|
;;
|
2005-11-18 04:10:51 +08:00
|
|
|
powerpc*-*-darwin*)
|
|
|
|
port_specific_symbol_files="\$(srcdir)/../config/os/bsd/darwin/ppc-extra.ver"
|
|
|
|
;;
|
2019-05-15 01:17:23 +08:00
|
|
|
*-*-solaris2*)
|
|
|
|
abi_baseline_pair=solaris
|
2017-02-03 00:24:03 +08:00
|
|
|
case "${host_cpu}" in
|
|
|
|
i?86 | x86_64)
|
|
|
|
abi_baseline_pair=i386-${abi_baseline_pair}
|
|
|
|
;;
|
|
|
|
sparc*)
|
|
|
|
abi_baseline_pair=sparc-${abi_baseline_pair}
|
|
|
|
;;
|
|
|
|
esac
|
2011-07-08 16:49:57 +08:00
|
|
|
abi_baseline_subdir_switch=--print-multi-os-directory
|
2010-07-02 18:05:49 +08:00
|
|
|
;;
|
2000-11-18 04:35:06 +08:00
|
|
|
esac
|