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

mercurial at gmplib.org mercurial at gmplib.org
Mon Jan 4 07:12:34 UTC 2016


details:   /var/hg/gmp-6.1/rev/43d8d4a77cdd
changeset: 16939:43d8d4a77cdd
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Jan 04 07:43:15 2016 +0100
description:
tests/arm32call.asm: bx->ret to support thumb-less chips
(thanks Martin Husemann).

details:   /var/hg/gmp-6.1/rev/9a03e949988e
changeset: 16940:9a03e949988e
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Mon Jan 04 07:45:07 2016 +0100
description:
Use gmp_uint_least32_t in bitfields instead of unsigned int.

details:   /var/hg/gmp-6.1/rev/3c3ec9be3b9b
changeset: 16941:3c3ec9be3b9b
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Mon Jan 04 07:46:01 2016 +0100
description:
Assert library version.

details:   /var/hg/gmp-6.1/rev/19412c0b8136
changeset: 16942:19412c0b8136
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Mon Jan 04 07:46:46 2016 +0100
description:
ChangeLog

details:   /var/hg/gmp-6.1/rev/6b6437ade036
changeset: 16943:6b6437ade036
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Jan 04 07:48:19 2016 +0100
description:
tests/: Do not redefine localeconv when mingw is used.

details:   /var/hg/gmp-6.1/rev/409352302a1c
changeset: 16944:409352302a1c
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Mon Jan 04 07:55:37 2016 +0100
description:
Cleanup arm32 support and handle thumb-less armv4 chips.

details:   /var/hg/gmp-6.1/rev/e7eea4dcbea5
changeset: 16945:e7eea4dcbea5
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Jan 04 08:03:11 2016 +0100
description:
ChangeLog

details:   /var/hg/gmp-6.1/rev/e225fb40ca63
changeset: 16946:e225fb40ca63
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Jan 04 08:12:07 2016 +0100
description:
Bump release numbers.

diffstat:

 ChangeLog                 |  31 +++++++++++++++++++++++++++++++
 Makefile.am               |   7 ++++---
 configure.ac              |  34 ++++++++++++----------------------
 gmp-h.in                  |   4 ++--
 gmp-impl.h                |   4 ++--
 mpn/arm/aorslsh1_n.asm    |   2 +-
 mpn/arm/arm-defs.m4       |   3 +++
 mpn/arm/bdiv_dbm1c.asm    |   2 +-
 mpn/arm/cnd_aors_n.asm    |   2 +-
 mpn/arm/com.asm           |   2 +-
 mpn/arm/copyd.asm         |   2 +-
 mpn/arm/copyi.asm         |   2 +-
 mpn/arm/dive_1.asm        |   4 ++--
 mpn/arm/invert_limb.asm   |   2 +-
 mpn/arm/logops_n.asm      |   2 +-
 mpn/arm/lshift.asm        |   2 +-
 mpn/arm/lshiftc.asm       |   2 +-
 mpn/arm/mod_34lsub1.asm   |   4 ++--
 mpn/arm/mode1o.asm        |   2 +-
 mpn/arm/rsh1aors_n.asm    |   2 +-
 mpn/arm/rshift.asm        |   2 +-
 mpn/arm/sec_tabselect.asm |   4 ++--
 mpn/arm/udiv.asm          |   2 +-
 mpn/generic/trialdiv.c    |   4 ++--
 tests/arm32call.asm       |   4 ++--
 tests/cxx/clocale.c       |   2 +-
 tests/misc.c              |  14 ++++++++++++++
 tests/misc/t-locale.c     |  11 +----------
 28 files changed, 94 insertions(+), 64 deletions(-)

diffs (truncated from 490 to 300 lines):

diff -r 73fe4c9774e0 -r e225fb40ca63 ChangeLog
--- a/ChangeLog	Mon Dec 14 17:23:28 2015 +0100
+++ b/ChangeLog	Mon Jan 04 08:12:07 2016 +0100
@@ -1,9 +1,33 @@
+2016-01-04 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*): Bump version info.
+	* gmp-h.in: Bump version.
+
+2016-01-01 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/cxx/clocale.c: Do not re-define localeconv for mingw.
+	* tests/misc/t-locale.c: Likewise (Thanks Alexander).
+
+2015-12-26  Torbjörn Granlund  <torbjorng at google.com>
+
+	* tests/misc.c (tests_start): Assert library version.
+
+2015-12-19  Marc Glisse  <marc.glisse at inria.fr>
+
+	* gmp-impl.h (fft_table_nk): Use gmp_uint_least32_t.
+	* mpn/generic/trialdiv.c (gmp_primes_ptab): Likewise.
+
 2015-12-14  Torbjörn Granlund  <torbjorng at google.com>
 
 	* mpn/x86_64/fat/fat.c (gmp_workaround_skylake_cpuid_bug):
 	New function.
 	(__gmpn_cpuvec_init): Handle more BMI2 crippled CPUs.
 
+2015-12-13 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/arm32call.asm: bx->ret to support thumb-less chips 
+	  (thanks Martin Husemann).
+
 2015-12-13  Torbjörn Granlund  <torbjorng at google.com>
 
 	* config.sub: Fix spelling of kabylake.
@@ -15,6 +39,13 @@
 	* tests/misc/t-printf.c: Test a sequence of '%'.
 	* printf/doprnt.c: Avoid buffer overread with long long limbs.
 
+2015-12-06  Torbjörn Granlund  <torbjorng at google.com>
+
+	* configure.ac (arm*): Conditionally define NOTHUMB.
+	Simplify and generalise.
+	* mpn/arm/arm-defs.m4 (ret): New macro, conditional on NOTHUMB.
+	* mpn/arm/*.asm: Use ret.
+
 2015-12-03  Torbjörn Granlund  <torbjorng at google.com>
 
 	* config.guess: Work around skylake cpuid bug.
diff -r 73fe4c9774e0 -r e225fb40ca63 Makefile.am
--- a/Makefile.am	Mon Dec 14 17:23:28 2015 +0100
+++ b/Makefile.am	Mon Jan 04 08:12:07 2016 +0100
@@ -1,7 +1,7 @@
 ## Process this file with automake to generate Makefile.in
 
 
-# Copyright 1991, 1993, 1994, 1996, 1997, 1999-2004, 2006-2009, 2011-2015 Free
+# Copyright 1991, 1993, 1994, 1996, 1997, 1999-2004, 2006-2009, 2011-2016 Free
 # Software Foundation, Inc.
 #
 #  This file is part of the GNU MP Library.
@@ -87,6 +87,7 @@
 #        5.1.2   11:2:1    7:2:3     -
 #        6.0.0   12:0:2    8:0:4     -
 #        6.1.0   13:0:3    9:0:5     -
+#        6.1.1   13:1:3    9:1:5     -
 #
 # Starting at 3:0:0 is a slight abuse of the versioning system, but it
 # ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux
@@ -100,11 +101,11 @@
 # libgmpxx.so.3.0.4) incrementing, to make it clear which GMP it's from.
 
 LIBGMP_LT_CURRENT    = 13
-LIBGMP_LT_REVISION   = 0
+LIBGMP_LT_REVISION   = 1
 LIBGMP_LT_AGE        = 3
 
 LIBGMPXX_LT_CURRENT  = 9
-LIBGMPXX_LT_REVISION = 0
+LIBGMPXX_LT_REVISION = 1
 LIBGMPXX_LT_AGE      = 5
 
 
diff -r 73fe4c9774e0 -r e225fb40ca63 configure.ac
--- a/configure.ac	Mon Dec 14 17:23:28 2015 +0100
+++ b/configure.ac	Mon Jan 04 08:12:07 2016 +0100
@@ -625,35 +625,23 @@
     # either enforce them, or organise to strip paths as the corresponding
     # options fail.
     case $host_cpu in
-      armv7*)
-	path="arm/v6t2 arm/v6 arm/v5 arm"
-	gcc_cflags_arch="-march=armv7-a"
+      armsa1 | arm7t* | arm9t* | armv4t*)
+	path="arm"
+	gcc_cflags_arch="-march=armv4"
 	;;
-      armv6t2*)
+      armxscale | arm7ej | arm9te | arm9e* | arm10* | armv5*)
+	path="arm/v5 arm"
+	gcc_cflags_arch="-march=armv5"
+	;;
+      arm1156 | armv6t2*)
 	path="arm/v6t2 arm/v6 arm/v5 arm"
 	gcc_cflags_arch="-march=armv6t2"
 	;;
-      armv6*)
+      arm11* | armv6*)
 	path="arm/v6 arm/v5 arm"
 	gcc_cflags_arch="-march=armv6"
 	;;
-      armsa1 | arm9tdmi | armv4*)
-	path="arm"
-	gcc_cflags_arch="-march=armv4"
-	;;
-      armxscale | arm9te | arm10 | armv5*)
-	path="arm/v5 arm"
-	gcc_cflags_arch="-march=armv5"
-	;;
-      arm11mpcore | arm1136 | arm1176*)
-	path="arm/v6 arm/v5 arm"
-	gcc_cflags_arch="-march=armv6"
-	;;
-      arm1156)
-	path="arm/v6t2 arm/v6 arm/v5 arm"
-	gcc_cflags_arch="-march=armv6t2"
-	;;
-      armcortexa5)
+      armcortexa5 | armv7*)
 	path="arm/v6t2 arm/v6 arm/v5 arm"
 	gcc_cflags_arch="-march=armv7-a"
 	;;
@@ -703,6 +691,8 @@
 	;;
       *)
 	path="arm"
+	gcc_cflags_arch="-march=armv4"
+	GMP_DEFINE_RAW(["define(<NOTHUMB>,1)"])
 	;;
     esac
     ;;
diff -r 73fe4c9774e0 -r e225fb40ca63 gmp-h.in
--- a/gmp-h.in	Mon Dec 14 17:23:28 2015 +0100
+++ b/gmp-h.in	Mon Jan 04 08:12:07 2016 +0100
@@ -1,6 +1,6 @@
 /* Definitions for GNU multiple precision functions.   -*- mode: c -*-
 
-Copyright 1991, 1993-1997, 1999-2015 Free Software Foundation, Inc.
+Copyright 1991, 1993-1997, 1999-2016 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 
@@ -2326,7 +2326,7 @@
 /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */
 #define __GNU_MP_VERSION            6
 #define __GNU_MP_VERSION_MINOR      1
-#define __GNU_MP_VERSION_PATCHLEVEL 0
+#define __GNU_MP_VERSION_PATCHLEVEL 1
 #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
 
 #define __GMP_H__
diff -r 73fe4c9774e0 -r e225fb40ca63 gmp-impl.h
--- a/gmp-impl.h	Mon Dec 14 17:23:28 2015 +0100
+++ b/gmp-impl.h	Mon Jan 04 08:12:07 2016 +0100
@@ -2295,8 +2295,8 @@
 
 struct fft_table_nk
 {
-  unsigned int n:27;
-  unsigned int k:5;
+  gmp_uint_least32_t n:27;
+  gmp_uint_least32_t k:5;
 };
 
 #ifndef FFT_TABLE_ATTRS
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/aorslsh1_n.asm
--- a/mpn/arm/aorslsh1_n.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/aorslsh1_n.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -163,5 +163,5 @@
 	REVCY(r12)
 L(rt0):	RETVAL(	r14)
 	pop	{r4-r10r11, r14}
-	bx	r14
+	ret	r14
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/arm-defs.m4
--- a/mpn/arm/arm-defs.m4	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/arm-defs.m4	Mon Jan 04 08:12:07 2016 +0100
@@ -84,6 +84,9 @@
 ')dnl
 ')
 
+define(`ret',`ifdef(`NOTHUMB',`mov	pc, ',`bx')')
+
+
 define(`EPILOGUE_cpu',
 `lea_list
 	SIZE(`$1',.-`$1')')
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/bdiv_dbm1c.asm
--- a/mpn/arm/bdiv_dbm1c.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/bdiv_dbm1c.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -109,5 +109,5 @@
 	str	r5, [qp]
 	sbc	r0, r5, r12
 	pop	{r4, r5, r6, r7, r8}
-	bx	lr
+	ret	lr
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/cnd_aors_n.asm
--- a/mpn/arm/cnd_aors_n.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/cnd_aors_n.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -130,5 +130,5 @@
 
 L(end):	RETVAL
 	pop	{r4-r11}
-	bx	r14
+	ret	r14
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/com.asm
--- a/mpn/arm/com.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/com.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -71,5 +71,5 @@
 	bne	L(top)
 
 	ldmfd	sp!, { r7, r8, r9 }		C restore regs from stack
-L(rtn):	bx	lr
+L(rtn):	ret	lr
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/copyd.asm
--- a/mpn/arm/copyd.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/copyd.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -80,5 +80,5 @@
 
 L(end):	stmda	rp, { r3,r4,r5,r12 }
 	pop	{ r4-r5 }
-L(rtn):	bx	lr
+L(rtn):	ret	lr
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/copyi.asm
--- a/mpn/arm/copyi.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/copyi.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -75,5 +75,5 @@
 
 L(end):	stm	rp, { r3,r4,r5,r12 }
 	pop	{ r4-r5 }
-L(rtn):	bx	lr
+L(rtn):	ret	lr
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/dive_1.asm
--- a/mpn/arm/dive_1.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/dive_1.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -112,7 +112,7 @@
 	mul	r9, r4, cy
 	str	r9, [rp]
 	pop	{r4-r9}
-	bx	r14
+	ret	r14
 
 L(unnorm):
 	rsb	tnc, cnt, #32
@@ -136,7 +136,7 @@
 	mul	r9, r4, cy
 	str	r9, [rp]
 	pop	{r4-r9}
-	bx	r14
+	ret	r14
 EPILOGUE()
 
 	RODATA
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/invert_limb.asm
--- a/mpn/arm/invert_limb.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/invert_limb.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -52,7 +52,7 @@
 	adds	r1, r12, r0
 	adc	r3, r3, r0
 	rsb	r0, r3, r2
-	bx	lr
+	ret	lr
 EPILOGUE()
 
 	RODATA
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/logops_n.asm
--- a/mpn/arm/logops_n.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/logops_n.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -135,5 +135,5 @@
 	pop	{ r4, r5, r6, r7 }	C popping r8-r10 here strangely fails
 
 L(rtn):	pop	{ r8, r9, r10 }
-	bx	r14
+	ret	r14
 EPILOGUE()
diff -r 73fe4c9774e0 -r e225fb40ca63 mpn/arm/lshift.asm
--- a/mpn/arm/lshift.asm	Mon Dec 14 17:23:28 2015 +0100
+++ b/mpn/arm/lshift.asm	Mon Jan 04 08:12:07 2016 +0100
@@ -84,5 +84,5 @@
 L(1):	str	r7, [rp, #-4]
 	mov	r0, r4, lsr tnc
 	pop	{r4, r6, r7, r8}


More information about the gmp-commit mailing list