CVS commit: src/external/lgpl3/gmp/dist

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 18:42:23 UTC 2021

Modified Files:
src/external/lgpl3/gmp/dist: configfsf.sub configure configure.ac

Log Message:
add mipsn64 support, so native-gmp works, and likely, build.sh tools
on a mipsn64 host.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/lgpl3/gmp/dist/configfsf.sub
cvs rdiff -u -r1.9 -r1.10 src/external/lgpl3/gmp/dist/configure
cvs rdiff -u -r1.1.1.4 -r1.2 src/external/lgpl3/gmp/dist/configure.ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configfsf.sub
diff -u src/external/lgpl3/gmp/dist/configfsf.sub:1.7 src/external/lgpl3/gmp/dist/configfsf.sub:1.8
--- src/external/lgpl3/gmp/dist/configfsf.sub:1.7	Sun Jul 11 21:15:45 2021
+++ src/external/lgpl3/gmp/dist/configfsf.sub	Mon Jul 12 18:42:23 2021
@@ -1193,6 +1193,7 @@ case $cpu-$vendor in
 			| mips | mipsbe | mipseb | mipsel | mipsle \
 			| mips16 \
 			| mips64 | mips64eb | mips64el \
+			| mipsn64 | mipsn64eb | mipsn64el \
 			| mips64octeon | mips64octeonel \
 			| mips64orion | mips64orionel \
 			| mips64r5900 | mips64r5900el \

Index: src/external/lgpl3/gmp/dist/configure
diff -u src/external/lgpl3/gmp/dist/configure:1.9 src/external/lgpl3/gmp/dist/configure:1.10
--- src/external/lgpl3/gmp/dist/configure:1.9	Sun Jul 11 21:15:45 2021
+++ src/external/lgpl3/gmp/dist/configure	Mon Jul 12 18:42:23 2021
@@ -4684,7 +4684,7 @@ echo "include_mpn(\`mips32/mips-defs.m4'
 
 
 case $host in
-  mips64*-*-* | mipsisa64*-*-* | mips*-*-irix[6789]*)
+  mips64*-*-* | mipsisa64*-*-* | mips*-*-irix[6789]* | mipsn64*-*-*)
 abilist="n32 64 o32"
 
 cclist_n32="gcc cc"

Index: src/external/lgpl3/gmp/dist/configure.ac
diff -u src/external/lgpl3/gmp/dist/configure.ac:1.1.1.4 src/external/lgpl3/gmp/dist/configure.ac:1.2
--- src/external/lgpl3/gmp/dist/configure.ac:1.1.1.4	Sun Jul 11 21:14:44 2021
+++ src/external/lgpl3/gmp/dist/configure.ac	Mon Jul 12 18:42:23 2021
@@ -35,7 +35,7 @@ see https://www.gnu.org/licenses/.
 AC_COPYRIGHT(GMP_COPYRIGHT)
 AH_TOP(/*GMP_COPYRIGHT*/)
 
-AC_REVISION($Revision: 1.1.1.4 $)
+AC_REVISION($Revision: 1.2 $)
 AC_PREREQ(2.59)
 AC_INIT(GNU MP, GMP_VERSION, [gmp-b...@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html], gmp)
 AC_CONFIG_SRCDIR(gmp-impl.h)
@@ -1027,7 +1027,7 @@ case $host in
 GMP_INCLUDE_MPN(mips32/mips-defs.m4)
 
 case $host in
-  [mips64*-*-* | mipsisa64*-*-* | mips*-*-irix[6789]*])
+  [mips64*-*-* | mipsisa64*-*-* | mips*-*-irix[6789]* | mipsn64*-*-*])
 abilist="n32 64 o32"
 
 cclist_n32="gcc cc"



CVS commit: src/external/lgpl3/gmp/dist

2021-07-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul 11 21:15:48 UTC 2021

Modified Files:
src/external/lgpl3/gmp/dist: Makefile.in config.guess configfsf.guess
configfsf.sub configure gmp-h.in gmp-impl.h longlong.h
src/external/lgpl3/gmp/dist/mpn/generic: mod_1_1.c
Removed Files:
src/external/lgpl3/gmp/dist/mpn/alpha/ev67: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/arm/v5: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/arm/v6t2: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/arm64: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/ia64: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/mips64: addmul_1.asm mul_1.asm
sqr_diagonal.asm submul_1.asm umul.asm
src/external/lgpl3/gmp/dist/mpn/powerpc64/mode64: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/powerpc64/mode64/p7: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/sparc64: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86/bobcat: gmp-mparam.h
src/external/lgpl3/gmp/dist/mpn/x86/fat: gcd_1.c
src/external/lgpl3/gmp/dist/mpn/x86/k6: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86/k7: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86/p6: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86_64: addmul_2.asm gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/bd1: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat: aors_n.asm aorsmul_1.asm
copyd.asm copyi.asm gmp-mparam.h mul_1.asm mul_basecase.asm
redc_1.asm sqr_basecase.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/core2: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/coreisbr: popcount.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/k10: gcd_1.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/mulx: aorsmul_1.asm mul_1.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/nano: gcd_1.asm
src/external/lgpl3/gmp/dist/tests/cxx: t-ops2.cc
src/external/lgpl3/gmp/dist/tests/devel: addmul_N.c anymul_1.c aors_n.c
cnd_aors_n.c copy.c divmod_1.c divrem.c logops_n.c mul_N.c shift.c
tst-addsub.c
src/external/lgpl3/gmp/dist/tests/mpz: bit.c

Log Message:
merge GMP 6.2.1.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/dist/Makefile.in \
src/external/lgpl3/gmp/dist/gmp-impl.h
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/dist/config.guess \
src/external/lgpl3/gmp/dist/configfsf.sub \
src/external/lgpl3/gmp/dist/gmp-h.in
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/dist/configfsf.guess \
src/external/lgpl3/gmp/dist/longlong.h
cvs rdiff -u -r1.8 -r1.9 src/external/lgpl3/gmp/dist/configure
cvs rdiff -u -r1.1.1.2 -r0 \
src/external/lgpl3/gmp/dist/mpn/alpha/ev67/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 src/external/lgpl3/gmp/dist/mpn/arm/v5/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 src/external/lgpl3/gmp/dist/mpn/arm/v6t2/gcd_1.asm
cvs rdiff -u -r1.1.1.1 -r0 src/external/lgpl3/gmp/dist/mpn/arm64/gcd_1.asm
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c
cvs rdiff -u -r1.1.1.3 -r0 src/external/lgpl3/gmp/dist/mpn/ia64/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 \
src/external/lgpl3/gmp/dist/mpn/mips64/addmul_1.asm \
src/external/lgpl3/gmp/dist/mpn/mips64/mul_1.asm \
src/external/lgpl3/gmp/dist/mpn/mips64/sqr_diagonal.asm \
src/external/lgpl3/gmp/dist/mpn/mips64/submul_1.asm \
src/external/lgpl3/gmp/dist/mpn/mips64/umul.asm
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/lgpl3/gmp/dist/mpn/powerpc64/mode64/gcd_1.asm
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/lgpl3/gmp/dist/mpn/powerpc64/mode64/p7/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 src/external/lgpl3/gmp/dist/mpn/sparc64/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 \
src/external/lgpl3/gmp/dist/mpn/x86/bobcat/gmp-mparam.h
cvs rdiff -u -r1.1.1.2 -r0 src/external/lgpl3/gmp/dist/mpn/x86/fat/gcd_1.c
cvs rdiff -u -r1.1.1.2 -r0 src/external/lgpl3/gmp/dist/mpn/x86/k6/gcd_1.asm
cvs rdiff -u -r1.1.1.3 -r0 src/external/lgpl3/gmp/dist/mpn/x86/k7/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 src/external/lgpl3/gmp/dist/mpn/x86/p6/gcd_1.asm
cvs rdiff -u -r1.1.1.3 -r0 \
src/external/lgpl3/gmp/dist/mpn/x86_64/addmul_2.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/gcd_1.asm
cvs rdiff -u -r1.1.1.2 -r0 \
src/external/lgpl3/gmp/dist/mpn/x86_64/bd1/gcd_1.asm
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/aors_n.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/redc_1.asm
cvs rdiff -u -r1.1.1.2 -r0 \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/aorsmul_1.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/copyd.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/copyi.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/gmp-mparam.h \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/mul_1.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/mul_basecase.asm \
src/external/lgpl3/gmp/dist/mpn/x86_64/bobcat/sqr_basecase.asm
cvs 

CVS commit: src/external/lgpl3/gmp/dist

2020-10-31 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sat Oct 31 21:48:06 UTC 2020

Modified Files:
src/external/lgpl3/gmp/dist: config.sub

Log Message:
recognize some more G4 model names produced by config.guess
now native tools builds on ppc7447 and ppc7455 work again


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/dist/config.sub

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/config.sub
diff -u src/external/lgpl3/gmp/dist/config.sub:1.3 src/external/lgpl3/gmp/dist/config.sub:1.4
--- src/external/lgpl3/gmp/dist/config.sub:1.3	Sun Sep 27 00:30:26 2020
+++ src/external/lgpl3/gmp/dist/config.sub	Sat Oct 31 21:48:06 2020
@@ -112,7 +112,7 @@ powerpc601 | powerpc602  | \
 powerpc603 | powerpc603e | \
 powerpc604 | powerpc604e | \
 powerpc620 | powerpc630  | powerpc970  | \
-powerpc740 | powerpc7400 | powerpc7450 | powerpc750  | \
+powerpc740 | powerpc7400 | powerpc74[4-5][0-9] | powerpc750  | \
 powerpc801 | powerpc821 | powerpc823  | powerpc860 | \
 powerpc64)
   test_cpu=powerpc ;;



CVS commit: src/external/lgpl3/gmp/dist

2017-10-18 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Thu Oct 19 03:26:29 UTC 2017

Modified Files:
src/external/lgpl3/gmp/dist: acinclude.m4 configure

Log Message:
external/lgpl3/gmp build fail in configure phase with "ln -s J 
/etc/malloc.conf".

patch from pkgsrc/devel/gmp
  http://mail-index.netbsd.org/pkgsrc-changes/2017/06/15/msg158404.html


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/dist/acinclude.m4
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/dist/configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/acinclude.m4
diff -u src/external/lgpl3/gmp/dist/acinclude.m4:1.4 src/external/lgpl3/gmp/dist/acinclude.m4:1.5
--- src/external/lgpl3/gmp/dist/acinclude.m4:1.4	Tue Aug 22 09:55:44 2017
+++ src/external/lgpl3/gmp/dist/acinclude.m4	Thu Oct 19 03:26:28 2017
@@ -744,7 +744,7 @@ main ()
   long i;
   for (i = 0; i < 88 + 1; i++)
 a[i] = ~0L;
-  r = malloc (1 * sizeof (unsigned long));
+  r = calloc (1, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
 {

Index: src/external/lgpl3/gmp/dist/configure
diff -u src/external/lgpl3/gmp/dist/configure:1.6 src/external/lgpl3/gmp/dist/configure:1.7
--- src/external/lgpl3/gmp/dist/configure:1.6	Tue Aug 22 09:55:44 2017
+++ src/external/lgpl3/gmp/dist/configure	Thu Oct 19 03:26:28 2017
@@ -6786,7 +6786,7 @@ main ()
   long i;
   for (i = 0; i < 88 + 1; i++)
 a[i] = ~0L;
-  r = malloc (1 * sizeof (unsigned long));
+  r = calloc (1, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
 {
@@ -8404,7 +8404,7 @@ main ()
   long i;
   for (i = 0; i < 88 + 1; i++)
 a[i] = ~0L;
-  r = malloc (1 * sizeof (unsigned long));
+  r = calloc (1, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
 {



CVS commit: src/external/lgpl3/gmp/dist

2014-06-24 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Tue Jun 24 12:54:56 UTC 2014

Modified Files:
src/external/lgpl3/gmp/dist: configure

Log Message:
Revert previous commit.  Requested by matt@.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/dist/configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configure
diff -u src/external/lgpl3/gmp/dist/configure:1.4 src/external/lgpl3/gmp/dist/configure:1.5
--- src/external/lgpl3/gmp/dist/configure:1.4	Mon Jun 23 12:48:42 2014
+++ src/external/lgpl3/gmp/dist/configure	Tue Jun 24 12:54:56 2014
@@ -4142,7 +4142,7 @@ echo include_mpn(\`alpha/default.m4') 
 ;;
 
 
-  arm*-*-* | earm*-*-*)
+  arm*-*-*)
 gcc_cflags=$gcc_cflags $fomit_frame_pointer
 gcc_cflags_optlist=arch tune
 gcc_cflags_maybe=-marm



CVS commit: src/external/lgpl3/gmp/dist

2014-06-23 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Mon Jun 23 12:48:43 UTC 2014

Modified Files:
src/external/lgpl3/gmp/dist: configure

Log Message:
Support earm*-*-*.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/dist/configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configure
diff -u src/external/lgpl3/gmp/dist/configure:1.3 src/external/lgpl3/gmp/dist/configure:1.4
--- src/external/lgpl3/gmp/dist/configure:1.3	Fri Nov 29 07:57:10 2013
+++ src/external/lgpl3/gmp/dist/configure	Mon Jun 23 12:48:42 2014
@@ -4142,7 +4142,7 @@ echo include_mpn(\`alpha/default.m4') 
 ;;
 
 
-  arm*-*-*)
+  arm*-*-* | earm*-*-*)
 gcc_cflags=$gcc_cflags $fomit_frame_pointer
 gcc_cflags_optlist=arch tune
 gcc_cflags_maybe=-marm



CVS commit: src/external/lgpl3/gmp/dist

2014-06-23 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Jun 23 17:18:43 UTC 2014

Modified Files:
src/external/lgpl3/gmp/dist: configfsf.guess

Log Message:
Teach configfsf.guess about coldfire and earm


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/external/lgpl3/gmp/dist/configfsf.guess

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configfsf.guess
diff -u src/external/lgpl3/gmp/dist/configfsf.guess:1.1.1.2 src/external/lgpl3/gmp/dist/configfsf.guess:1.2
--- src/external/lgpl3/gmp/dist/configfsf.guess:1.1.1.2	Fri Nov 29 07:49:47 2013
+++ src/external/lgpl3/gmp/dist/configfsf.guess	Mon Jun 23 17:18:43 2014
@@ -158,14 +158,28 @@ case ${UNAME_MACHINE}:${UNAME_SYSTEM}:$
 	case ${UNAME_MACHINE_ARCH} in
 	armeb) machine=armeb-unknown ;;
 	arm*) machine=arm-unknown ;;
+	coldfire) machine=m5407-unknown ;;
+	earm*eb*) machine=armeb-unknown ;;
+	earm*) machine=arm-unknown ;;
 	sh3el) machine=shl-unknown ;;
 	sh3eb) machine=sh-unknown ;;
 	sh5el) machine=sh5le-unknown ;;
 	*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
 	esac
 	# The Operating System including object format, if it has switched
-	# to ELF recently, or will in the future.
+	# to ELF recently, or will in the future and ABI.
 	case ${UNAME_MACHINE_ARCH} in
+	coldfire) os=netbsdelf ;;
+	earm*)
+		eval $set_cc_for_build
+		if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2/dev/null \
+			| grep -q __ARM_PCS_VFP
+		then
+		os=netbsdelf-eabi
+		else
+		os=netbsdelf-eabihf
+		fi
+		;;
 	arm*|i386|m68k|ns32k|sh3*|sparc|vax)
 		eval $set_cc_for_build
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2/dev/null \



CVS commit: src/external/lgpl3/gmp/dist/mpn/powerpc32

2013-12-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Dec  2 13:16:49 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist/mpn/powerpc32: elf.m4

Log Message:
Fix typo in secureplt support.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4
diff -u src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.2 src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.3
--- src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.2	Sun Jul  3 03:30:19 2011
+++ src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4	Mon Dec  2 13:16:49 2013
@@ -41,7 +41,7 @@ define(`LEA',
 m4_assert_numargs(2)
 `ifdef(`PIC',`
 	mflr	r0
-	bl	20,31,1f
+	bcl	20,31,1f
 1:	mflr	$1
 	mtlr	r0
 	addis	$1,$1,_GLOBAL_OFFSET_TABLE_-1b@ha



CVS commit: src/external/lgpl3/gmp/dist/mpn/generic

2013-12-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Dec  1 09:29:06 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist/mpn/generic: div_qr_2.c divrem_2.c
mod_1_1.c mod_1_2.c mod_1_3.c mod_1_4.c

Log Message:
Apply upstream fix for warnings seen on sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/lgpl3/gmp/dist/mpn/generic/div_qr_2.c
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c \
src/external/lgpl3/gmp/dist/mpn/generic/mod_1_2.c \
src/external/lgpl3/gmp/dist/mpn/generic/mod_1_3.c \
src/external/lgpl3/gmp/dist/mpn/generic/mod_1_4.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/generic/div_qr_2.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/div_qr_2.c:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/generic/div_qr_2.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/div_qr_2.c:1.1.1.1	Fri Nov 29 07:49:49 2013
+++ src/external/lgpl3/gmp/dist/mpn/generic/div_qr_2.c	Sun Dec  1 09:29:06 2013
@@ -130,10 +130,11 @@ along with the GNU MP Library.  If not, 
 umul_ppmm (_q1d,_q0, n2, di0);	\
 add_sss (_q3,_q2,_q1, _q2,_q1, _q2a,_q1d);			\
 	\
-add_ss (r1, r0, n3, n2, 0, 1); /* FIXME: combine as in x86_64 asm */ \
+add_ss (r1, r0, n3, n2, CNST_LIMB(0), CNST_LIMB(1));		\
+  /* FIXME: combine as in x86_64 asm */	\
 	\
 /* [q3,q2,q1,q0] += [n3,n3,n1,n0] */\
-add_csaac (_c, _q0, _q0, n0, 0);	\
+add_csaac (_c, _q0, _q0, n0, CNST_LIMB(0));\
 add_csaac (_c, _q1, _q1, n1, _c);	\
 add_csaac (_c, _q2, _q2, r0, _c);	\
 _q3 = _q3 + r1 + _c;		\
@@ -145,14 +146,14 @@ along with the GNU MP Library.  If not, 
 	\
 _mask = -(mp_limb_t) (r1 = _q1  (r1  _q1 | r0 = _q0));  /* (r1,r0) = (q1,q0) */  \
 add_ss (r1, r0, r1, r0, d1  _mask, d0  _mask);		\
-sub_ddmmss (_q3, _q2, _q3, _q2, 0, -_mask);\
+sub_ddmmss (_q3, _q2, _q3, _q2, CNST_LIMB(0), -_mask);		\
 	\
 if (UNLIKELY (r1 = d1))		\
   {	\
 	if (r1  d1 || r0 = d0)	\
 	  {\
 	sub_ddmmss (r1, r0, r1, r0, d1, d0);			\
-	add_ss (_q3, _q2, _q3, _q2, 0, 1);			\
+	add_ss (_q3, _q2, _q3, _q2, CNST_LIMB(0), CNST_LIMB(1));\
 	  }\
   }	\
 (q1) = _q3;\

Index: src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c:1.2 src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c:1.3
--- src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c:1.2	Sat Nov 30 20:30:22 2013
+++ src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c	Sun Dec  1 09:29:06 2013
@@ -98,7 +98,7 @@ mpn_divrem_2 (mp_ptr qp, mp_size_t qxn,
   for (i = qxn - 1; i = 0; i--)
 	{
 	  mp_limb_t q;
-	  udiv_qr_3by2 (q, r1, r0, r1, r0, 0UL, d1, d0, di.inv32);
+	  udiv_qr_3by2 (q, r1, r0, r1, r0, CNST_LIMB(0), d1, d0, di.inv32);
 	  qp[i] = q;
 	}
 }

Index: src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c:1.1.1.2 src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c:1.1.1.2	Fri Nov 29 07:49:49 2013
+++ src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c	Sun Dec  1 09:29:06 2013
@@ -160,7 +160,7 @@ mpn_mod_1_1p_cps (mp_limb_t cps[4], mp_l
*   B2modb = - b * bi;
*   ASSERT (B2modb = b);// NB: equality iff b = B/2
*/
-  udiv_rnnd_preinv (B2modb, B1modb, 0, b, bi);
+  udiv_rnnd_preinv (B2modb, B1modb, CNST_LIMB(0), b, bi);
   cps[3] = B2modb  cnt;
 }
 
Index: src/external/lgpl3/gmp/dist/mpn/generic/mod_1_2.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/mod_1_2.c:1.1.1.2 src/external/lgpl3/gmp/dist/mpn/generic/mod_1_2.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/mod_1_2.c:1.1.1.2	Fri Nov 29 07:49:49 2013
+++ src/external/lgpl3/gmp/dist/mpn/generic/mod_1_2.c	Sun Dec  1 09:29:06 2013
@@ -51,10 +51,10 @@ mpn_mod_1s_2p_cps (mp_limb_t cps[5], mp_
   ASSERT (B1modb = b);		/* NB: not fully reduced mod b */
   cps[2] = B1modb  cnt;
 
-  udiv_rnnd_preinv (B2modb, B1modb, 0, b, bi);
+  udiv_rnnd_preinv (B2modb, B1modb, CNST_LIMB(0), b, bi);
   cps[3] = B2modb  cnt;
 
-  udiv_rnnd_preinv (B3modb, B2modb, 0, b, bi);
+  udiv_rnnd_preinv (B3modb, B2modb, CNST_LIMB(0), b, bi);
   cps[4] = B3modb  cnt;
 
 #if WANT_ASSERT
Index: src/external/lgpl3/gmp/dist/mpn/generic/mod_1_3.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/mod_1_3.c:1.1.1.2 src/external/lgpl3/gmp/dist/mpn/generic/mod_1_3.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/mod_1_3.c:1.1.1.2	Fri Nov 29 07:49:49 2013
+++ src/external/lgpl3/gmp/dist/mpn/generic/mod_1_3.c	Sun Dec  1 09:29:06 2013
@@ -51,13 +51,13 @@ mpn_mod_1s_3p_cps (mp_limb_t cps[6], mp_
   ASSERT (B1modb = b);		

CVS commit: src/external/lgpl3/gmp/dist/mpn/generic

2013-11-30 Thread John Nemeth
Module Name:src
Committed By:   jnemeth
Date:   Sat Nov 30 19:05:25 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist/mpn/generic: toom_interpolate_7pts.c

Log Message:
PR/48419 - Henning Petersen -- unbalanced parenthesis


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/lgpl3/gmp/dist/mpn/generic/toom_interpolate_7pts.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/generic/toom_interpolate_7pts.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/toom_interpolate_7pts.c:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/generic/toom_interpolate_7pts.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/toom_interpolate_7pts.c:1.1.1.1	Mon Jun 20 05:54:41 2011
+++ src/external/lgpl3/gmp/dist/mpn/generic/toom_interpolate_7pts.c	Sat Nov 30 19:05:25 2013
@@ -33,7 +33,7 @@ along with the GNU MP Library.  If not, 
   GMP_NUMB_MAX / 9)  (6 - GMP_NUMB_BITS % 6)) * 8  GMP_NUMB_MAX) | 0x39)
 
 #define BINVERT_15 \
-  GMP_NUMB_MAX  (GMP_NUMB_BITS % 4)) / 15) * 14 * 16  GMP_NUMB_MAX) + 15))
+  GMP_NUMB_MAX  (GMP_NUMB_BITS % 4)) / 15) * 14 * 16  GMP_NUMB_MAX) + 15)
 
 /* For the various mpn_divexact_byN here, fall back to using either
mpn_pi1_bdiv_q_1 or mpn_divexact_1.  The former has less overhead and is



CVS commit: src/external/lgpl3/gmp/dist/mpn/generic

2013-11-30 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 30 20:30:22 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist/mpn/generic: divrem_2.c

Log Message:
Avoid warning on sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c:1.1.1.2 src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c:1.1.1.2	Fri Nov 29 07:49:49 2013
+++ src/external/lgpl3/gmp/dist/mpn/generic/divrem_2.c	Sat Nov 30 20:30:22 2013
@@ -98,7 +98,7 @@ mpn_divrem_2 (mp_ptr qp, mp_size_t qxn,
   for (i = qxn - 1; i = 0; i--)
 	{
 	  mp_limb_t q;
-	  udiv_qr_3by2 (q, r1, r0, r1, r0, 0, d1, d0, di.inv32);
+	  udiv_qr_3by2 (q, r1, r0, r1, r0, 0UL, d1, d0, di.inv32);
 	  qp[i] = q;
 	}
 }



CVS commit: src/external/lgpl3/gmp/dist/mpn

2013-11-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 29 08:02:28 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist/mpn/arm: aorscnd_n.asm aorslsh1_n.asm
bdiv_dbm1c.asm com.asm copyd.asm copyi.asm logops_n.asm lshift.asm
lshiftc.asm mod_34lsub1.asm mode1o.asm rsh1aors_n.asm rshift.asm
udiv.asm
src/external/lgpl3/gmp/dist/mpn/generic: get_d.c

Log Message:
port forward our changes:
- allow working on thumb-missing platforms
- fix some minor issues


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/lgpl3/gmp/dist/mpn/arm/aorscnd_n.asm \
src/external/lgpl3/gmp/dist/mpn/arm/aorslsh1_n.asm \
src/external/lgpl3/gmp/dist/mpn/arm/bdiv_dbm1c.asm \
src/external/lgpl3/gmp/dist/mpn/arm/com.asm \
src/external/lgpl3/gmp/dist/mpn/arm/logops_n.asm \
src/external/lgpl3/gmp/dist/mpn/arm/lshift.asm \
src/external/lgpl3/gmp/dist/mpn/arm/lshiftc.asm \
src/external/lgpl3/gmp/dist/mpn/arm/mod_34lsub1.asm \
src/external/lgpl3/gmp/dist/mpn/arm/mode1o.asm \
src/external/lgpl3/gmp/dist/mpn/arm/rsh1aors_n.asm \
src/external/lgpl3/gmp/dist/mpn/arm/rshift.asm
cvs rdiff -u -r1.1.1.2 -r1.2 src/external/lgpl3/gmp/dist/mpn/arm/copyd.asm \
src/external/lgpl3/gmp/dist/mpn/arm/copyi.asm
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/dist/mpn/generic/get_d.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/arm/aorscnd_n.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/aorscnd_n.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/aorscnd_n.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/aorscnd_n.asm:1.1.1.1	Fri Nov 29 07:49:48 2013
+++ src/external/lgpl3/gmp/dist/mpn/arm/aorscnd_n.asm	Fri Nov 29 08:02:28 2013
@@ -117,5 +117,8 @@ L(top):	ldm	vp!, {r4,r5,r6,r7}
 
 L(end):	RETVAL
 	pop	{r4-r11}
-	bx	r14
+ifdef(`ARM_THUMB_MODE',
+`	bx	r14
+',`	mov	pc, r14
+')
 EPILOGUE()
Index: src/external/lgpl3/gmp/dist/mpn/arm/aorslsh1_n.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/aorslsh1_n.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/aorslsh1_n.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/aorslsh1_n.asm:1.1.1.1	Fri Nov 29 07:49:48 2013
+++ src/external/lgpl3/gmp/dist/mpn/arm/aorslsh1_n.asm	Fri Nov 29 08:02:28 2013
@@ -151,5 +151,8 @@ L(rt1):	mov	r14, r12
 	REVCY(r12)
 L(rt0):	RETVAL(	r14)
 	pop	{r4-r10r11, r14}
-	bx	r14
+ifdef(`ARM_THUMB_MODE',
+`	bx	r14
+',`	mov	pc, r14
+')
 EPILOGUE()
Index: src/external/lgpl3/gmp/dist/mpn/arm/bdiv_dbm1c.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/bdiv_dbm1c.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/bdiv_dbm1c.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/bdiv_dbm1c.asm:1.1.1.1	Fri Nov 29 07:49:48 2013
+++ src/external/lgpl3/gmp/dist/mpn/arm/bdiv_dbm1c.asm	Fri Nov 29 08:02:28 2013
@@ -97,5 +97,8 @@ L(wd1):	subs	r5, r5, r8
 	str	r5, [qp]
 	sbc	r0, r5, r12
 	pop	{r4, r5, r6, r7, r8}
-	bx	lr
+ifdef(`ARM_THUMB_MODE',
+`	bx	lr
+',`	mov	pc, lr
+')
 EPILOGUE()
Index: src/external/lgpl3/gmp/dist/mpn/arm/com.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/com.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/com.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/com.asm:1.1.1.1	Fri Nov 29 07:49:48 2013
+++ src/external/lgpl3/gmp/dist/mpn/arm/com.asm	Fri Nov 29 08:02:28 2013
@@ -59,5 +59,9 @@ L(top):	ldmia	up!, { r3, r8, r9, r12 }	C
 	bne	L(top)
 
 	ldmfd	sp!, { r7, r8, r9 }		C restore regs from stack
-L(rtn):	bx	lr
+L(rtn):
+ifdef(`ARM_THUMB_MODE',
+`	bx	lr
+',`	mov	pc, lr
+')
 EPILOGUE()
Index: src/external/lgpl3/gmp/dist/mpn/arm/logops_n.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/logops_n.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/logops_n.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/logops_n.asm:1.1.1.1	Fri Nov 29 07:49:48 2013
+++ src/external/lgpl3/gmp/dist/mpn/arm/logops_n.asm	Fri Nov 29 08:02:28 2013
@@ -123,5 +123,8 @@ L(mid):	sub	n, n, #4
 	pop	{ r4, r5, r6, r7 }	C popping r8-r10 here strangely fails
 
 L(rtn):	pop	{ r8, r9, r10 }
-	bx	r14
+ifdef(`ARM_THUMB_MODE',
+`	bx	r14
+',`	mov	pc, r14
+')
 EPILOGUE()
Index: src/external/lgpl3/gmp/dist/mpn/arm/lshift.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/lshift.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/lshift.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/lshift.asm:1.1.1.1	Fri Nov 29 07:49:48 2013
+++ src/external/lgpl3/gmp/dist/mpn/arm/lshift.asm	Fri Nov 29 08:02:28 2013
@@ -72,5 +72,8 @@ L(end):	orr	r7, r7, r6, lsr tnc
 L(1):	str	r7, [rp, #-4]
 	lsr	r0, r4, tnc
 	pop	{r4, r6, r7, r8}
-	bx	r14
+ifdef(`ARM_THUMB_MODE',
+`	bx	r14
+',`	mov	pc, r14
+')
 EPILOGUE()
Index: src/external/lgpl3/gmp/dist/mpn/arm/lshiftc.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/lshiftc.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/lshiftc.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/lshiftc.asm:1.1.1.1	Fri Nov 29 07:49:48 2013

CVS commit: src/external/lgpl3/gmp/dist

2013-11-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 29 07:57:12 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist: Makefile.in acinclude.m4 config.guess
configfsf.sub configure gmp-h.in gmp-impl.h
src/external/lgpl3/gmp/dist/mpn: Makefile.in
src/external/lgpl3/gmp/dist/mpn/arm: invert_limb.asm udiv.asm
src/external/lgpl3/gmp/dist/mpn/generic: get_d.c
Removed Files:
src/external/lgpl3/gmp/dist: ansi2knr.1 ansi2knr.c configure.in
dumbmp.c gen-fac_ui.c libmp.sym mp-h.in rand.c randbui.c randclr.c
randdef.c randiset.c randlc2s.c randlc2x.c randmt.c randmt.h
randmts.c randmui.c rands.c randsd.c randsdui.c
src/external/lgpl3/gmp/dist/mpbsd: Makefile.am Makefile.in itom.c
mfree.c min.c mout.c mtox.c rpow.c sdiv.c xtom.c
src/external/lgpl3/gmp/dist/mpn/arm: add_n.asm addmul_1.asm sub_n.asm
submul_1.asm
src/external/lgpl3/gmp/dist/mpn/generic: addsub_n.c gcd_lehmer.c
gcdext_subdiv_step.c redc_1_sec.c
src/external/lgpl3/gmp/dist/mpn/ia64: sqr_diagonal.asm
src/external/lgpl3/gmp/dist/mpn/powerpc64: sqr_diagonal.asm
src/external/lgpl3/gmp/dist/mpn/powerpc64/mode64: addlsh1_n.asm
addmul_1.asm sublsh1_n.asm submul_1.asm
src/external/lgpl3/gmp/dist/mpn/s390: README addmul_1.asm gmp-mparam.h
mul_1.asm submul_1.asm
src/external/lgpl3/gmp/dist/mpn/sh: add_n.s sub_n.s
src/external/lgpl3/gmp/dist/mpn/sh/sh2: addmul_1.s mul_1.s submul_1.s
src/external/lgpl3/gmp/dist/mpn/sparc64: add_n.asm addmul_1.asm
addmul_2.asm lshift.asm mul_1.asm rshift.asm sqr_diagonal.asm
sub_n.asm submul_1.asm
src/external/lgpl3/gmp/dist/mpn/thumb: add_n.s sub_n.s
src/external/lgpl3/gmp/dist/mpn/vax: add_n.s addmul_1.s lshift.s
mul_1.s rshift.s sub_n.s submul_1.s
src/external/lgpl3/gmp/dist/mpn/x86: invert_limb.asm
src/external/lgpl3/gmp/dist/mpn/x86/fat: diveby3.c
src/external/lgpl3/gmp/dist/mpn/x86_64/core2: aorslsh1_n.asm
src/external/lgpl3/gmp/dist/mpn/x86_64/corei: gmp-mparam.h
src/external/lgpl3/gmp/dist/mpn/x86_64/fat: diveby3.c gcd_1.c mode1o.c
src/external/lgpl3/gmp/dist/mpn/z8000x: add_n.s sub_n.s
src/external/lgpl3/gmp/dist/tests/mpbsd: Makefile.am Makefile.in
allfuns.c t-itom.c t-mtox.c

Log Message:
merge GMP 5.1.3 (part 1.)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/Makefile.in \
src/external/lgpl3/gmp/dist/acinclude.m4 \
src/external/lgpl3/gmp/dist/config.guess \
src/external/lgpl3/gmp/dist/configure \
src/external/lgpl3/gmp/dist/gmp-impl.h
cvs rdiff -u -r1.1.1.1 -r0 src/external/lgpl3/gmp/dist/ansi2knr.1 \
src/external/lgpl3/gmp/dist/ansi2knr.c \
src/external/lgpl3/gmp/dist/dumbmp.c \
src/external/lgpl3/gmp/dist/gen-fac_ui.c \
src/external/lgpl3/gmp/dist/libmp.sym src/external/lgpl3/gmp/dist/mp-h.in \
src/external/lgpl3/gmp/dist/rand.c src/external/lgpl3/gmp/dist/randbui.c \
src/external/lgpl3/gmp/dist/randclr.c \
src/external/lgpl3/gmp/dist/randdef.c \
src/external/lgpl3/gmp/dist/randiset.c \
src/external/lgpl3/gmp/dist/randlc2s.c \
src/external/lgpl3/gmp/dist/randlc2x.c \
src/external/lgpl3/gmp/dist/randmt.c src/external/lgpl3/gmp/dist/randmt.h \
src/external/lgpl3/gmp/dist/randmts.c \
src/external/lgpl3/gmp/dist/randmui.c src/external/lgpl3/gmp/dist/rands.c \
src/external/lgpl3/gmp/dist/randsd.c \
src/external/lgpl3/gmp/dist/randsdui.c
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/dist/configfsf.sub \
src/external/lgpl3/gmp/dist/gmp-h.in
cvs rdiff -u -r1.2 -r0 src/external/lgpl3/gmp/dist/configure.in
cvs rdiff -u -r1.1.1.1 -r0 src/external/lgpl3/gmp/dist/mpbsd/Makefile.am \
src/external/lgpl3/gmp/dist/mpbsd/Makefile.in \
src/external/lgpl3/gmp/dist/mpbsd/itom.c \
src/external/lgpl3/gmp/dist/mpbsd/mfree.c \
src/external/lgpl3/gmp/dist/mpbsd/min.c \
src/external/lgpl3/gmp/dist/mpbsd/mout.c \
src/external/lgpl3/gmp/dist/mpbsd/mtox.c \
src/external/lgpl3/gmp/dist/mpbsd/rpow.c \
src/external/lgpl3/gmp/dist/mpbsd/sdiv.c \
src/external/lgpl3/gmp/dist/mpbsd/xtom.c
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/mpn/Makefile.in
cvs rdiff -u -r1.1.1.1 -r0 src/external/lgpl3/gmp/dist/mpn/arm/add_n.asm \
src/external/lgpl3/gmp/dist/mpn/arm/addmul_1.asm \
src/external/lgpl3/gmp/dist/mpn/arm/sub_n.asm \
src/external/lgpl3/gmp/dist/mpn/arm/submul_1.asm
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm \
src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm
cvs rdiff -u -r1.1.1.1 -r0 src/external/lgpl3/gmp/dist/mpn/generic/addsub_n.c \
src/external/lgpl3/gmp/dist/mpn/generic/gcd_lehmer.c \
src/external/lgpl3/gmp/dist/mpn/generic/gcdext_subdiv_step.c \

CVS commit: src/external/lgpl3/gmp/dist/mpn/arm

2013-09-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Sep 30 12:30:51 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist/mpn/arm: udiv.asm

Log Message:
Appease new gas. Already fixed upstream.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm:1.1.1.1	Mon Jun 20 05:54:43 2011
+++ src/external/lgpl3/gmp/dist/mpn/arm/udiv.asm	Mon Sep 30 12:30:51 2013
@@ -48,7 +48,7 @@ L(oop):	divstep(n1,n0,d)
 	teq	r12, #0
 	bne	L(oop)
 
-	str	n1, [ rem_ptr ]		C store remainder
+	str	n1, [rem_ptr]		C store remainder
 	adc	r0, n0, n0		C quotient: add last carry from divstep
 	mov	pc, lr
 
@@ -87,7 +87,7 @@ L(oop2):
 	addcs	n0, n0, #1		C adjust quotient
 
 L(_even_divisor):
-	str	n1, [ rem_ptr ]		C store remainder
+	str	n1, [rem_ptr]		C store remainder
 	mov	r0, n0			C quotient
 	ldmfd	sp!, { r8, pc }
 EPILOGUE(mpn_udiv_qrnnd)



CVS commit: src/external/lgpl3/gmp/dist

2013-07-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jul 19 17:31:14 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist: configure configure.in

Log Message:
Match m5407-*-*


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/configure \
src/external/lgpl3/gmp/dist/configure.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configure
diff -u src/external/lgpl3/gmp/dist/configure:1.1.1.1 src/external/lgpl3/gmp/dist/configure:1.2
--- src/external/lgpl3/gmp/dist/configure:1.1.1.1	Mon Jun 20 05:54:37 2011
+++ src/external/lgpl3/gmp/dist/configure	Fri Jul 19 17:31:14 2013
@@ -4475,6 +4475,16 @@ echo include_mpn(\`ia64/ia64-defs.m4')
 ;;
 
 
+  # Motorola Coldfire
+  #
+  m5407-*-*)
+
+gcc_cflags=$gcc_cflags $fomit_frame_pointer
+gcc_cflags_optlist=arch
+gcc_cflags_arch=-m5407
+  ;;
+
+
   # Motorola 68k
   #
   m68k-*-* | m68[0-9][0-9][0-9]-*-*)
Index: src/external/lgpl3/gmp/dist/configure.in
diff -u src/external/lgpl3/gmp/dist/configure.in:1.1.1.1 src/external/lgpl3/gmp/dist/configure.in:1.2
--- src/external/lgpl3/gmp/dist/configure.in:1.1.1.1	Mon Jun 20 05:54:31 2011
+++ src/external/lgpl3/gmp/dist/configure.in	Fri Jul 19 17:31:14 2013
@@ -25,7 +25,7 @@ along with the GNU MP Library.  If not, 
 AC_COPYRIGHT(GMP_COPYRIGHT)
 AH_TOP(/*GMP_COPYRIGHT*/)
 
-AC_REVISION($Revision: 1.1.1.1 $)
+AC_REVISION($Revision: 1.2 $)
 AC_PREREQ(2.59)
 AC_INIT(GNU MP, GMP_VERSION, gmp-b...@gmplib.org, gmp)
 AC_CONFIG_SRCDIR(gmp-impl.h)
@@ -743,6 +743,12 @@ case $host in
 esac
 ;;
 
+  # Mototole Coldfire (isa_b)
+  M5407_PATTERN)
+gcc_cflags=$gcc_cflags $fomit_frame_pointer
+gcc_cflags_optlist=arch
+gcc_cflags_arch=-m5407
+;;
 
   # Motorola 68k
   #



CVS commit: src/external/lgpl3/gmp/dist

2013-07-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jul 19 17:07:28 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist: configfsf.sub

Log Message:
Add m5407--netbsdelf* support


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/configfsf.sub

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configfsf.sub
diff -u src/external/lgpl3/gmp/dist/configfsf.sub:1.2 src/external/lgpl3/gmp/dist/configfsf.sub:1.3
--- src/external/lgpl3/gmp/dist/configfsf.sub:1.2	Mon Feb  4 02:45:28 2013
+++ src/external/lgpl3/gmp/dist/configfsf.sub	Fri Jul 19 17:07:28 2013
@@ -320,7 +320,8 @@ case $basic_machine in
 		basic_machine=$basic_machine-unknown
 		os=-none
 		;;
-	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | m5407 \
+	| v70 | w65 | z8k)
 		;;
 	ms1)
 		basic_machine=mt-unknown
@@ -369,6 +370,7 @@ case $basic_machine in
 	| ip2k-* | iq2000-* \
 	| lm32-* \
 	| m32c-* | m32r-* | m32rle-* \
+	| m5200-* | m5407-* \
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \



CVS commit: src/external/lgpl3/gmp/dist

2013-07-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jul 19 17:31:49 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist: acinclude.m4

Log Message:
Add a M5407_PATTERN


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/acinclude.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/acinclude.m4
diff -u src/external/lgpl3/gmp/dist/acinclude.m4:1.1.1.1 src/external/lgpl3/gmp/dist/acinclude.m4:1.2
--- src/external/lgpl3/gmp/dist/acinclude.m4:1.1.1.1	Mon Jun 20 05:54:29 2011
+++ src/external/lgpl3/gmp/dist/acinclude.m4	Fri Jul 19 17:31:49 2013
@@ -33,6 +33,9 @@ dnlconftest.exe - various DOS compil
 define(IA64_PATTERN,
 [[ia64*-*-* | itanium-*-* | itanium2-*-*]])
 
+define(M5407_PATTERN,
+[[m5407-*-*]])
+
 dnl  Need to be careful not to match m6811, m6812, m68hc11 and m68hc12, all
 dnl  of which config.sub accepts.  (Though none of which are likely to work
 dnl  with GMP.)



CVS commit: src/external/lgpl3/gmp/dist

2013-02-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Feb  4 02:45:28 UTC 2013

Modified Files:
src/external/lgpl3/gmp/dist: configfsf.sub

Log Message:
Understand netbsd*-*eabi* for an os


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/configfsf.sub

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/configfsf.sub
diff -u src/external/lgpl3/gmp/dist/configfsf.sub:1.1.1.1 src/external/lgpl3/gmp/dist/configfsf.sub:1.2
--- src/external/lgpl3/gmp/dist/configfsf.sub:1.1.1.1	Mon Jun 20 05:54:33 2011
+++ src/external/lgpl3/gmp/dist/configfsf.sub	Mon Feb  4 02:45:28 2013
@@ -126,7 +126,7 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-
 case $maybe_os in
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
   linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
-  knetbsd*-gnu* | netbsd*-gnu* | \
+  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-*eabi* | \
   kopensolaris*-gnu* | \
   storm-chaos* | os2-emx* | rtmk-nova*)
 os=-$maybe_os



CVS commit: src/external/lgpl3/gmp/dist

2012-12-16 Thread Christoph Egger
Module Name:src
Committed By:   cegger
Date:   Sun Dec 16 14:40:08 UTC 2012

Modified Files:
src/external/lgpl3/gmp/dist: gmp-h.in

Log Message:
Always use extern __inline__ with gcc = 4.2.
Fall back to prototypes on older gcc versions.

Fixes link errors (duplicate symbols) when mpfr's configure check for libgmp


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/dist/gmp-h.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/gmp-h.in
diff -u src/external/lgpl3/gmp/dist/gmp-h.in:1.2 src/external/lgpl3/gmp/dist/gmp-h.in:1.3
--- src/external/lgpl3/gmp/dist/gmp-h.in:1.2	Sat Jul  2 14:05:03 2011
+++ src/external/lgpl3/gmp/dist/gmp-h.in	Sun Dec 16 14:40:07 2012
@@ -421,10 +421,9 @@ typedef __mpq_struct *mpq_ptr;
 GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
 inline semantics, unless -fgnu89-inline is used.  */
 #ifdef __GNUC__
-#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4  __GNUC_MINOR__ == 2)
+#if (defined __GNUC_STDC_INLINE__) || \
+(__GNUC__ == 4  __GNUC_MINOR__ = 2) || (__GNUC__  4)
 #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
-#else
-#define __GMP_EXTERN_INLINE  extern __inline__
 #endif
 #define __GMP_INLINE_PROTOTYPES  1
 #endif



CVS commit: src/external/lgpl3/gmp/dist/mpn/generic

2012-10-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Oct 27 06:55:55 UTC 2012

Modified Files:
src/external/lgpl3/gmp/dist/mpn/generic: get_d.c

Log Message:
Appease shift vs substract warning for clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/generic/get_d.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/generic/get_d.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/get_d.c:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/generic/get_d.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/get_d.c:1.1.1.1	Mon Jun 20 05:54:41 2011
+++ src/external/lgpl3/gmp/dist/mpn/generic/get_d.c	Sat Oct 27 06:55:54 2012
@@ -220,7 +220,7 @@ mpn_get_d (mp_srcptr up, mp_size_t size,
 	  x = GMP_NAIL_BITS;
 	  mhi |= x  nbits  11;
 
-	  mlo = x  GMP_LIMB_BITS - nbits - 11;
+	  mlo = x  (GMP_LIMB_BITS - nbits - 11);
 	  nbits = nbits + 11 - GMP_NAIL_BITS;
 	}
   else



CVS commit: src/external/lgpl3/gmp/dist

2012-03-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 27 21:56:04 UTC 2012

Modified Files:
src/external/lgpl3/gmp/dist: config.guess

Log Message:
disable exact cpu override to fix cross-compiling on linux


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/config.guess

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/config.guess
diff -u src/external/lgpl3/gmp/dist/config.guess:1.1.1.1 src/external/lgpl3/gmp/dist/config.guess:1.2
--- src/external/lgpl3/gmp/dist/config.guess:1.1.1.1	Mon Jun 20 01:54:32 2011
+++ src/external/lgpl3/gmp/dist/config.guess	Tue Mar 27 17:56:04 2012
@@ -833,8 +833,8 @@ esac
 
 # -
 # Use an exact cpu, if possible
-
-if test -n $exact_cpu; then
+# Disabled for NetBSD cross builds
+if false  test -n $exact_cpu; then
   echo $exact_cpu$guess_rest
 else
   echo $guess_full



CVS commit: src/external/lgpl3/gmp/dist/mpn

2011-09-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Sep 14 16:35:22 UTC 2011

Modified Files:
src/external/lgpl3/gmp/dist/mpn: Makefile.in

Log Message:
PR/45367: Gr�goire Sutre: don't depend on m4-ccas and cpp-ccas to be
executable; invoke the shell to run them.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/Makefile.in
diff -u src/external/lgpl3/gmp/dist/mpn/Makefile.in:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/Makefile.in:1.2
--- src/external/lgpl3/gmp/dist/mpn/Makefile.in:1.1.1.1	Mon Jun 20 01:54:38 2011
+++ src/external/lgpl3/gmp/dist/mpn/Makefile.in	Wed Sep 14 12:35:22 2011
@@ -994,7 +994,7 @@
 	$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
 	$(RM_TMP) tmp-$*.s
 .S.lo:
-	$(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/cpp-ccas --cpp=$(CPP) $(PREPROCESS_FLAGS) $(CCAS) $(COMPILE_FLAGS) `test -f '$' || echo '$(srcdir)/'`$
+	$(LIBTOOL) --mode=compile --tag=CC $(SHELL) $(top_srcdir)/mpn/cpp-ccas --cpp=$(CPP) $(PREPROCESS_FLAGS) $(CCAS) $(COMPILE_FLAGS) `test -f '$' || echo '$(srcdir)/'`$
 
 # .asm assembler, preprocessed with m4.
 #
@@ -1022,7 +1022,7 @@
 	$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
 	$(RM_TMP) tmp-$*.s
 .asm.lo:
-	$(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4=$(M4) $(CCAS) $(COMPILE_FLAGS) `test -f '$' || echo '$(srcdir)/'`$
+	$(LIBTOOL) --mode=compile --tag=CC $(SHELL) $(top_srcdir)/mpn/m4-ccas --m4=$(M4) $(CCAS) $(COMPILE_FLAGS) `test -f '$' || echo '$(srcdir)/'`$
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.



CVS commit: src/external/lgpl3/gmp/dist

2011-07-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jul  2 13:26:39 UTC 2011

Modified Files:
src/external/lgpl3/gmp/dist: Makefile.in

Log Message:
split two sub-make targets into two separate make calls.
avoids an annoying -jN install problem.  idea from dh.  thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/Makefile.in
diff -u src/external/lgpl3/gmp/dist/Makefile.in:1.1.1.1 src/external/lgpl3/gmp/dist/Makefile.in:1.2
--- src/external/lgpl3/gmp/dist/Makefile.in:1.1.1.1	Mon Jun 20 05:54:31 2011
+++ src/external/lgpl3/gmp/dist/Makefile.in	Sat Jul  2 13:26:39 2011
@@ -1242,7 +1242,8 @@
 uninstall: uninstall-recursive
 
 install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-data-am
 
 installcheck: installcheck-recursive
 install-strip:



CVS commit: src/external/lgpl3/gmp/dist/mpn/powerpc32

2011-07-02 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sun Jul  3 03:30:19 UTC 2011

Modified Files:
src/external/lgpl3/gmp/dist/mpn/powerpc32: elf.m4

Log Message:
Switch to using the secure-plt method of accessing the global offset table.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4
diff -u src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.2
--- src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.1.1.1	Mon Jun 20 05:54:40 2011
+++ src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4	Sun Jul  3 03:30:19 2011
@@ -41,9 +41,11 @@
 m4_assert_numargs(2)
 `ifdef(`PIC',`
 	mflr	r0
-	bl	_GLOBAL_OFFSET_TABLE_@local-4
-	mflr	$1
+	bl	20,31,1f
+1:	mflr	$1
 	mtlr	r0
+	addis	$1,$1,_GLOBAL_OFFSET_TABLE_-1b@ha
+	addi	$1,$1,_GLOBAL_OFFSET_TABLE_-1b@l
 	lwz	$1, $2@got($1)
 ',`
 	lis	$1, $2@ha