[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Nov 18 17:03:21 UTC 2014


details:   /var/hg/gmp/rev/863e651b9766
changeset: 16521:863e651b9766
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Tue Nov 18 18:03:03 2014 +0100
description:
(arm*-*-*): Base guesses on first matching /proc/cpuinfo line.

details:   /var/hg/gmp/rev/f080f8d4aecd
changeset: 16522:f080f8d4aecd
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Tue Nov 18 18:03:17 2014 +0100
description:
ChangeLog

diffstat:

 ChangeLog    |  10 ++++++++--
 config.guess |   4 ++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r e5c858f8e7cc -r f080f8d4aecd ChangeLog
--- a/ChangeLog	Mon Nov 17 21:57:04 2014 +0100
+++ b/ChangeLog	Tue Nov 18 18:03:17 2014 +0100
@@ -1,3 +1,9 @@
+2014-11-18  Torbjörn Granlund  <torbjorng at google.com>
+
+	From Hannes Mehnert:
+	* config.guess (arm*-*-*): Base guesses on first matching /proc/cpuinfo
+	line.
+
 2014-11-17  Torbjörn Granlund  <torbjorng at google.com>
 
 	* longlong.h (__longlong_h_C): New macro.
@@ -22,7 +28,7 @@
 
 	* mpn/generic/toom_interpolate_8pts.c: Fix operator precedence in
 	ASSERT.
-	
+
 2014-11-13  Torbjörn Granlund  <torbjorng at google.com>
 
 	* tune/speed.h: Add casts for C++ compatibility.
@@ -34,7 +40,7 @@
 	* tune/tuneup.c:  Add casts for C++ compatibility.
 	(mpn_divrem_1_tune, mpn_mod_1_tune): Mark as extern "C".
 	(INSERT_FFTTAB): Produce sentinels differently to silence compiler.
-	
+
 2014-11-12  Torbjörn Granlund  <torbjorng at google.com>
 
 	* gen-psqr.c: Add casts for C++ compatibility.
diff -r e5c858f8e7cc -r f080f8d4aecd config.guess
--- a/config.guess	Mon Nov 17 21:57:04 2014 +0100
+++ b/config.guess	Tue Nov 18 18:03:17 2014 +0100
@@ -173,7 +173,7 @@
   ;;
 
 arm*-*-*)
-  cpu_code=`sed -n 's/^CPU part.*\(0x.*\)$/\1/p' /proc/cpuinfo 2>/dev/null`
+  cpu_code=`sed -n 's/^CPU part.*\(0x.*\)$/\1/p' /proc/cpuinfo | head -n 1 2>/dev/null`
   case "$cpu_code" in
       0xa10 | 0xa11 | 0xb11)			# v4 strongarm/sa1100
 		exact_cpu="armsa1";;
@@ -200,7 +200,7 @@
       0xc15)	exact_cpu="armcortexr5";;	# v7r
       0xc23)	exact_cpu="armcortexm3";;	# v7m
   esac
-  exact_cpu="${exact_cpu}`sed -n 's;^Features.*\(neon\).*;\1;p' /proc/cpuinfo 2>/dev/null`"
+  exact_cpu="${exact_cpu}`sed -n 's;^Features.*\(neon\).*;\1;p' /proc/cpuinfo | head -n 1 2>/dev/null`"
   ;;
 
 ia64*-*-*)


More information about the gmp-commit mailing list