summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-11-20 22:55:07 +0100
committerTorbjorn Granlund <tege@gmplib.org>2011-11-20 22:55:07 +0100
commit1c9f3475308f9c3ae0b811566c4c88650128b772 (patch)
tree3670141b9bff8ea0e9253e42f71218cfca06b694
parent952803d3c43dcacfbd001d5fed37b32316b529dd (diff)
downloadgmp-1c9f3475308f9c3ae0b811566c4c88650128b772.tar.gz
Split x86 CPUs into more subtypes for more accurate passing of gcc flags.
-rw-r--r--ChangeLog3
-rw-r--r--configure.in20
2 files changed, 21 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 420ae5f4e..bca740a7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-11-20 Torbjorn Granlund <tege@gmplib.org>
+ * configure.in: Split x86 CPUs into more subtypes for more accurate
+ passing of gcc flags.
+
* mpn/powerpc32/p3-p7/aors_n.asm: New file.
* configure.in: Pass -m32 for powerpc64 with abi=32, using via _maybe
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"