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

mercurial at gmplib.org mercurial at gmplib.org
Thu May 16 20:26:14 CEST 2013


details:   /var/hg/gmp/rev/f07f53e0ba26
changeset: 15809:f07f53e0ba26
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu May 16 20:20:51 2013 +0200
description:
(arm1156): Don't fall back to plain v6 compiler option.

details:   /var/hg/gmp/rev/43ab002c4244
changeset: 15810:43ab002c4244
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu May 16 20:21:37 2013 +0200
description:
(WANT_ASSEMBLY): Conditionally define.

details:   /var/hg/gmp/rev/0a28649aec11
changeset: 15811:0a28649aec11
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu May 16 20:23:04 2013 +0200
description:
(tests_hardware_getround, tests_hardware_setround): Avoid assembly dependency unless WANT_ASSEMBLY.

details:   /var/hg/gmp/rev/94b82379e3a5
changeset: 15812:94b82379e3a5
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu May 16 20:26:04 2013 +0200
description:
ChangeLog

diffstat:

 ChangeLog    |  15 +++++++++++++--
 configure.ac |   7 ++++++-
 tests/misc.c |   6 +++---
 3 files changed, 22 insertions(+), 6 deletions(-)

diffs (82 lines):

diff -r ea101cedad37 -r 94b82379e3a5 ChangeLog
--- a/ChangeLog	Sat May 11 18:00:39 2013 +0200
+++ b/ChangeLog	Thu May 16 20:26:04 2013 +0200
@@ -1,3 +1,14 @@
+2013-05-16  Torbjorn Granlund  <tege at gmplib.org>
+
+	* tests/misc.c (tests_hardware_getround, tests_hardware_setround): 
+	Avoid assembly dependency unless WANT_ASSEMBLY.
+
+	* configure.ac (WANT_ASSEMBLY): Conditionally define.
+
+2013-05-14  Torbjorn Granlund  <tege at gmplib.org>
+
+	* configure.ac (arm1156): Don't fall back to plain v6 compiler option.
+
 2013-05-11  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/x86_64/coreisbr/mul_1.asm: Handle n = 1 for DOS64.  Streamline.
@@ -727,8 +738,8 @@
 	(mpz_export): Reorder branches.
 	(mpz_mul_ui): Avoid temporary allocation (mpn_mul_1 can work in-place).
 
-	* mini-gmp/tests/t-reuse.c: Fix typo causing the same negation condition
-	to be applied to all operands. (See 2013-02-03, Torbjorn)
+	* mini-gmp/tests/t-reuse.c: Fix typo causing the same negation
+	condition to be applied to all operands. (See 2013-02-03, Torbjorn)
 
 2013-02-17 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
diff -r ea101cedad37 -r 94b82379e3a5 configure.ac
--- a/configure.ac	Sat May 11 18:00:39 2013 +0200
+++ b/configure.ac	Thu May 16 20:26:04 2013 +0200
@@ -132,6 +132,11 @@
 esac],
 [enable_assembly=yes])
 
+if test "$enable_assembly" = "yes"; then
+  AC_DEFINE(WANT_ASSEMBLY,1,
+  [Defined to 1 as per --enable-assembly])
+fi
+
 
 AC_ARG_ENABLE(fft,
 AC_HELP_STRING([--enable-fft],[enable FFTs for multiplication [[default=yes]]]),
@@ -614,7 +619,7 @@
 	;;
       arm1156)
 	path="arm/v6t2 arm/v6 arm/v5 arm"
-	gcc_cflags_arch="-march=armv6t2 -march=armv6"
+	gcc_cflags_arch="-march=armv6t2"
 	;;
       armcortexa5 | armv7a*)
 	path="arm/v6t2 arm/v6 arm/v5 arm"
diff -r ea101cedad37 -r 94b82379e3a5 tests/misc.c
--- a/tests/misc.c	Sat May 11 18:00:39 2013 +0200
+++ b/tests/misc.c	Thu May 16 20:26:04 2013 +0200
@@ -1,6 +1,6 @@
 /* Miscellaneous test program support routines.
 
-Copyright 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2002, 2003, 2005, 2013 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library test suite.
 
@@ -465,7 +465,7 @@
 int
 tests_hardware_setround (int mode)
 {
-#if HAVE_HOST_CPU_FAMILY_x86
+#if WANT_ASSEMBLY && HAVE_HOST_CPU_FAMILY_x86
   int  rc;
   switch (mode) {
   case 0: rc = 0; break;  /* nearest */
@@ -486,7 +486,7 @@
 int
 tests_hardware_getround (void)
 {
-#if HAVE_HOST_CPU_FAMILY_x86
+#if WANT_ASSEMBLY && HAVE_HOST_CPU_FAMILY_x86
   switch ((x86_fstcw () & ~0xC00) >> 10) {
   case 0: return 0; break;  /* nearest */
   case 1: return 3; break;  /* down    */


More information about the gmp-commit mailing list