aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2006-10-29 16:35:50 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2006-10-29 16:35:50 +0000
commit0f45f0f588d8af6ed4047e0ce4351749b6c0328b (patch)
tree6dbe0080708b237eae8a1799f1ffc73557ea0f1e /gcc/config.gcc
parent097f29642281e0efba439b0cd88a507b7c67a88f (diff)
downloadgcc-0f45f0f588d8af6ed4047e0ce4351749b6c0328b.zip
gcc-0f45f0f588d8af6ed4047e0ce4351749b6c0328b.tar.gz
gcc-0f45f0f588d8af6ed4047e0ce4351749b6c0328b.tar.bz2
config.gcc (i[34567]86-*-linux*): Handle --enable-targets=all.
gcc: * config.gcc (i[34567]86-*-linux*): Handle --enable-targets=all. Handle tuning for bi-arch i[34567]86-*-linux* like that for i[34567]86-*-solaris2.1[0-9]*. * config/i386/linux64.h (TARGET_VERSION, MULTILIB_DEFAULTS): Define conditionally depending on TARGET_64BIT_DEFAULT. (SPEC_32, SPEC_64): Define. (LINK_SPEC): Use them. * doc/install.texi (--enable-targets=all): Document for x86-linux. libcpp: * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* depending on --enable-targets=all. * configure: Regenerate. fixincludes: * inclhack.def (AAB_fd_zero_asm_posix_types_h): Bypass on x86_64. * fixincl.x: Regenerate. From-SVN: r118147
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc30
1 files changed, 27 insertions, 3 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7545c38..bbe82f0 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1077,10 +1077,34 @@ i[34567]86-*-coff*)
i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
# Intel 80386's running GNU/*
# with ELF format using glibc 2
- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h"
case ${target} in
- i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
- i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;;
+ i[34567]86-*-linux*)
+ if test x$enable_targets = xall; then
+ tm_file="${tm_file} i386/x86-64.h i386/linux64.h"
+ tm_defines="${tm_defines} TARGET_BI_ARCH=1"
+ tmake_file="${tmake_file} i386/t-linux64"
+ need_64bit_hwint=yes
+ # FIXME: -m64 for i[34567]86-*-* should be allowed just
+ # like -m32 for x86_64-*-*.
+ case X"${with_cpu}" in
+ Xgeneric|Xnocona|Xx86-64|Xk8|Xopteron|Xathlon64|Xathlon-fx)
+ ;;
+ X)
+ with_cpu=generic
+ ;;
+ *)
+ echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
+ echo "generic nocona x86-64 k8 opteron athlon64 athlon-fx" 1>&2
+ exit 1
+ ;;
+ esac
+ else
+ tm_file="${tm_file} i386/linux.h"
+ fi
+ ;;
+ i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} i386/linux.h knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
+ i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} i386/linux.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;;
esac
tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtfm t-dfprules"
;;