diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-04-03 02:56:34 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-04-02 19:56:34 -0700 |
commit | 0465e49e7e36b34213f3835a2079a195a519041c (patch) | |
tree | 4c6a6013c43b5034a2490190c2856323ee2206e5 /gcc/config.gcc | |
parent | b9f25411dcb90908fc6d91b6953c006c9f303b4d (diff) | |
download | gcc-0465e49e7e36b34213f3835a2079a195a519041c.zip gcc-0465e49e7e36b34213f3835a2079a195a519041c.tar.gz gcc-0465e49e7e36b34213f3835a2079a195a519041c.tar.bz2 |
Add --with-abi= support to x86_64-*-*
2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
for --with-abi={x32|mx32} or --with-multilib-list=mx32.
(supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
* config/i386/biarchx32.h: New.
From-SVN: r186099
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index c30bb24..3eb2c70 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -488,6 +488,10 @@ fi case ${target} in i[34567]86-*-*) + if test "x$with_abi" != x; then + echo "This target does not support --with-abi." + exit 1 + fi if test "x$enable_cld" = xyes; then tm_defines="${tm_defines} USE_IX86_CLD=1" fi @@ -497,7 +501,24 @@ i[34567]86-*-*) tm_file="vxworks-dummy.h ${tm_file}" ;; x86_64-*-*) - tm_file="i386/biarch64.h ${tm_file}" + case ${with_abi} in + "") + if test "x$with_multilib_list" = xmx32; then + tm_file="i386/biarchx32.h ${tm_file}" + else + tm_file="i386/biarch64.h ${tm_file}" + fi + ;; + 64 | m64) + tm_file="i386/biarch64.h ${tm_file}" + ;; + x32 | mx32) + tm_file="i386/biarchx32.h ${tm_file}" + ;; + *) + echo "Unknown ABI used in --with-abi=$with_abi" + exit 1 + esac if test "x$enable_cld" = xyes; then tm_defines="${tm_defines} USE_IX86_CLD=1" fi @@ -3138,7 +3159,7 @@ case "${target}" in ;; i[34567]86-*-* | x86_64-*-*) - supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" + supported_defaults="abi arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do eval "val=\$with_$which" case ${val} in |