diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2011-11-20 22:55:07 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2011-11-20 22:55:07 +0100 |
commit | 1c9f3475308f9c3ae0b811566c4c88650128b772 (patch) | |
tree | 3670141b9bff8ea0e9253e42f71218cfca06b694 /configure.in | |
parent | 952803d3c43dcacfbd001d5fed37b32316b529dd (diff) | |
download | gmp-1c9f3475308f9c3ae0b811566c4c88650128b772.tar.gz |
Split x86 CPUs into more subtypes for more accurate passing of gcc flags.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 6427ec3dd..186d4b576 100644 --- a/configure.in +++ b/configure.in @@ -1536,14 +1536,30 @@ case $host in gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486" gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium" ;; - athlon64 | k8 | k10 | bobcat | bulldozer | x86_64) + athlon64 | k8 | x86_64) gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486" gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium" ;; - core2 | corei | coreinhm | coreiwsm | coreisbr) + k10) + gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8" + gcc_cflags_arch="-march=amdfam10 -mtune=k8 -march=k8~-mno-sse2" + ;; + bobcat) + gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8" + gcc_cflags_arch="-march=btver1 -march=amdfam10 -mtune=k8 -march=k8~-mno-sse2" + ;; + bulldozer) + gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8" + gcc_cflags_arch="-march=bdver1 -march=amdfam10 -mtune=k8 -march=k8~-mno-sse2" + ;; + core2) gcc_cflags_cpu="-mtune=core2 -mtune=k8" gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" ;; + corei | coreinhm | coreiwsm | coreisbr) + gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8" + gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" + ;; atom) gcc_cflags_cpu="-mtune=atom -mtune=pentium3" gcc_cflags_arch="-march=atom -march=pentium3" |