diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-12-16 23:21:09 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-12-16 23:21:09 +0000 |
commit | 39eefd9f1f439063c8b479b4da7980304f4f918e (patch) | |
tree | 3216cb9750eb4f738f8623e06840d9d2bd960ac4 /Build/source/libs/gmp/gmp-src/configure.ac | |
parent | d8061343f9866479227d717567c4b90bccd63b1f (diff) |
gmp 6.1.2
git-svn-id: svn://tug.org/texlive/trunk@42728 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gmp/gmp-src/configure.ac')
-rw-r--r-- | Build/source/libs/gmp/gmp-src/configure.ac | 116 |
1 files changed, 96 insertions, 20 deletions
diff --git a/Build/source/libs/gmp/gmp-src/configure.ac b/Build/source/libs/gmp/gmp-src/configure.ac index 92b29fe2d55..9641c041fd1 100644 --- a/Build/source/libs/gmp/gmp-src/configure.ac +++ b/Build/source/libs/gmp/gmp-src/configure.ac @@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script. define(GMP_COPYRIGHT,[[ -Copyright 1996-2015 Free Software Foundation, Inc. +Copyright 1996-2016 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -591,21 +591,18 @@ case $host in ;; - arm64*-*-* | aarch64*-*-*) - # The compiler clang version 3.4 or earlier requires an explicit -mfpu=neon - # for out assembly code. Since this compiler cloaks as gcc, we have to - # fake too. - gcc_cflags_maybe="-mfpu=neon" - path="arm64" - ;; - - - arm*-*-*) + arm*-*-* | aarch64*-*-*) + abilist="32" gcc_cflags="$gcc_cflags $fomit_frame_pointer" gcc_cflags_optlist="arch fpmode neon tune" + gcc_64_cflags_optlist="arch tune" gcc_testlist="gcc-arm-umodsi" - GMP_INCLUDE_MPN(arm/arm-defs.m4) + gcc_64_testlist="" CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo' + CALLING_CONVENTIONS_OBJS_64="" + cclist_64="gcc cc" + any_32_testlist="sizeof-long-4" + any_64_testlist="sizeof-long-8" # This is needed for clang, which is not content with flags like -mfpu=neon # alone. @@ -620,14 +617,14 @@ case $host in # either enforce them, or organise to strip paths as the corresponding # options fail. case $host_cpu in - armsa1 | arm7t* | arm9t* | armv4t*) - path="arm" - gcc_cflags_arch="-march=armv4" - ;; armxscale | arm7ej | arm9te | arm9e* | arm10* | armv5*) path="arm/v5 arm" gcc_cflags_arch="-march=armv5" ;; + armsa1 | arm7t* | arm9t* | armv4t*) + path="arm" + gcc_cflags_arch="-march=armv4" + ;; arm1156 | armv6t2*) path="arm/v6t2 arm/v6 arm/v5 arm" gcc_cflags_arch="-march=armv6t2" @@ -639,6 +636,13 @@ case $host in armcortexa5 | armv7*) path="arm/v6t2 arm/v6 arm/v5 arm" gcc_cflags_arch="-march=armv7-a" + gcc_cflags_tune="-mtune=cortex-a5" + ;; + armcortexa5neon) + path="arm/neon arm/v6t2 arm/v6 arm/v5 arm" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_arch="-march=armv7-a" + gcc_cflags_tune="-mtune=cortex-a5" ;; armcortexa7) path="arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm" @@ -684,6 +688,62 @@ case $host in gcc_cflags_neon="-mfpu=neon" gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" ;; + armcortexa53 | armcortexa53neon) + abilist="64 32" + path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64/cora53 arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="-mtune=cortex-a53" + ;; + armcortexa57 | armcortexa57neon) + abilist="64 32" + path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64/cora57 arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="-mtune=cortex-a57" + ;; + armcortexa72 | armcortexa72neon) + abilist="64 32" + path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64/cora72 arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="-mtune=cortex-a72" + ;; + armexynosm1) + abilist="64 32" + path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="-mtune=exynosm1" + ;; + armthunderx) + abilist="64 32" + path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="-mtune=thunderx" + ;; + armxgene1) + abilist="64 32" + path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64/xgene1 arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="-mtune=xgene1" + ;; + aarch64*) + abilist="64 32" + path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" + path_64="arm64" + gcc_cflags_arch="-march=armv8-a" + gcc_cflags_neon="-mfpu=neon" + gcc_cflags_tune="" + ;; *) path="arm" gcc_cflags_arch="-march=armv4" @@ -1209,7 +1269,9 @@ case $host in AC_DEFINE(HAVE_HOST_CPU_FAMILY_power) HAVE_HOST_CPU_FAMILY_power=1 cclist="gcc" - extra_functions="udiv_w_sdiv" + if test "$enable_assembly" = "yes" ; then + extra_functions="udiv_w_sdiv" + fi path="power" # gcc 2.7.2 knows rios1, rios2, rsc @@ -1239,7 +1301,9 @@ case $host in gcc_cflags="$gcc_cflags $fomit_frame_pointer" gcc_cflags_optlist="arch" path="s390_32" - extra_functions="udiv_w_sdiv" + if test "$enable_assembly" = "yes" ; then + extra_functions="udiv_w_sdiv" + fi gcc_32_cflags_maybe="-m31" case $host_cpu in @@ -1536,14 +1600,18 @@ case $host in GMP_INCLUDE_MPN(vax/elf.m4) gcc_cflags="$gcc_cflags $fomit_frame_pointer" path="vax" - extra_functions="udiv_w_sdiv" + if test "$enable_assembly" = "yes" ; then + extra_functions="udiv_w_sdiv" + fi ;; vax*-*-*) # Default to aout conventions (i.e., no register prefix, '_' global prefix) # gcc_cflags="$gcc_cflags $fomit_frame_pointer" path="vax" - extra_functions="udiv_w_sdiv" + if test "$enable_assembly" = "yes" ; then + extra_functions="udiv_w_sdiv" + fi ;; @@ -3541,6 +3609,12 @@ if test "$gmp_asm_syntax_testing" != no; then GMP_ASM_ALIGN_LOG case $host in + arm*-*-* | aarch64*-*-*) + case $ABI in + 32) + GMP_INCLUDE_MPN(arm/arm-defs.m4) ;; + esac + ;; hppa*-*-*) # for both pa32 and pa64 GMP_INCLUDE_MPN(pa32/pa-defs.m4) @@ -3629,6 +3703,8 @@ yes GMP_INCLUDE_MPN(x86_64/dos64.m4) ;; *-openbsd*) GMP_DEFINE_RAW(["define(<OPENBSD>,1)"]) ;; + *-linux*) + GMP_DEFINE_RAW(["define(<LINUX>,1)"]) ;; esac ;; esac |