[Gmp-commit] /var/hg/gmp: Recognise ARM sub-architectures.

mercurial at gmplib.org mercurial at gmplib.org
Sun Apr 22 21:40:52 CEST 2012


details:   /var/hg/gmp/rev/f42741a650c5
changeset: 14882:f42741a650c5
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Apr 22 21:40:50 2012 +0200
description:
Recognise ARM sub-architectures.

diffstat:

 ChangeLog    |   2 ++
 configure.in |  18 +++++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 7fbfbde9f1d0 -r f42741a650c5 ChangeLog
--- a/ChangeLog	Sun Apr 22 21:06:31 2012 +0200
+++ b/ChangeLog	Sun Apr 22 21:40:50 2012 +0200
@@ -1,5 +1,7 @@
 2012-04-22  Torbjorn Granlund  <tege at gmplib.org>
 
+	* configure.in: Recognise ARM sub-architectures.
+
 	* configfsf.guess: Update to current FSF version.
 	* configfsf.sub: Likewise.
 
diff -r 7fbfbde9f1d0 -r f42741a650c5 configure.in
--- a/configure.in	Sun Apr 22 21:06:31 2012 +0200
+++ b/configure.in	Sun Apr 22 21:40:50 2012 +0200
@@ -564,10 +564,26 @@
 
 
   arm*-*-*)
-    path="arm"
     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
+    gcc_cflags_optlist="arch"
     gcc_testlist="gcc-arm-umodsi"
     GMP_INCLUDE_MPN(arm/arm-defs.m4)
+    case $host_cpu in
+      armv5*)
+	gcc_cflags_arch="-march=armv5"
+	;;
+      armv6*)
+	path="arm/v6 arm"
+	gcc_cflags_arch="-march=armv6"
+	;;
+      armv7*) # FIXME: plain v7 is thumb-only, should we match more strictly?
+	path="arm/v7 arm/v6 arm"
+	gcc_cflags_arch="-march=armv7-a"
+	;;
+      *)
+	path="arm"
+	;;
+    esac
     ;;
 
 


More information about the gmp-commit mailing list