summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-11-20 21:47:49 +0100
committerTorbjorn Granlund <tege@gmplib.org>2011-11-20 21:47:49 +0100
commita7466d9e0e147ffcb964e987d207562306da48b5 (patch)
treeb582638eb0dccae7a286eebf45eb7f57bac32fbb
parent342bc281b1d2e59520f99be86120b177606f43f3 (diff)
downloadgmp-a7466d9e0e147ffcb964e987d207562306da48b5.tar.gz
Configure improvements powerpc64 with abi=32.
-rw-r--r--ChangeLog7
-rw-r--r--configure.in14
2 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 658930906..2e4b53904 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-20 Torbjorn Granlund <tege@gmplib.org>
+
+ * configure.in: Pass -m32 for powerpc64 with abi=32, using via _maybe
+ mechanism.
+
+ * configure.in: Support powerpc32/p3-p7 directory for affected CPUs.
+
2011-11-17 Torbjorn Granlund <tege@gmplib.org>
* tune/speed.c (routine): Add mpn_tabselect.
diff --git a/configure.in b/configure.in
index 887975c40..6427ec3dd 100644
--- a/configure.in
+++ b/configure.in
@@ -919,7 +919,7 @@ case $host in
powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
powerpc630) gcc_cflags_cpu="-mcpu=630"
xlc_cflags_arch="-qarch=pwr3"
- cpu_path="p3" ;;
+ cpu_path="p3 p3-p7" ;;
powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
powerpc7400 | powerpc7410)
gcc_cflags_asm="-Wa,-maltivec"
@@ -935,19 +935,19 @@ case $host in
powerpc970) gcc_cflags_cpu="-mtune=970"
xlc_cflags_arch="-qarch=970 -qarch=pwr3"
vmx_path="powerpc64/vmx"
- cpu_path="p4" ;;
+ cpu_path="p4 p3-p7" ;;
power4) gcc_cflags_cpu="-mtune=power4"
xlc_cflags_arch="-qarch=pwr4"
- cpu_path="p4" ;;
+ cpu_path="p4 p3-p7" ;;
power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4"
xlc_cflags_arch="-qarch=pwr5"
- cpu_path="p5 p4" ;;
+ cpu_path="p5 p4 p3-p7" ;;
power6) gcc_cflags_cpu="-mtune=power6"
xlc_cflags_arch="-qarch=pwr6"
- cpu_path="p6" ;;
+ cpu_path="p6 p3-p7" ;;
power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5"
xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
- cpu_path="p7 p5 p4" ;;
+ cpu_path="p7 p5 p4 p3-p7" ;;
esac
case $host in
@@ -1012,6 +1012,7 @@ case $host in
# incompatible with a shared library.
#
abilist="mode64 mode32 $abilist"
+ gcc_32_cflags_maybe="-m32"
gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
cclist_mode32="gcc"
gcc_mode32_cflags_maybe="-m32"
@@ -1057,6 +1058,7 @@ case $host in
# 64-bits.
#
abilist="mode64 mode32 $abilist"
+ gcc_32_cflags_maybe="-m32"
cclist_mode32="gcc"
gcc_mode32_cflags_maybe="-m32"
gcc_mode32_cflags="-mpowerpc64"