CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

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

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: config.h config.m4
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: config.h config.m4
gmp.h

Log Message:
mknative-gmp for mipsn64* and GMP 6.2.1.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h

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/lib/libgmp/arch/mipsn64eb/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1	Sun Apr 25 23:57:47 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h	Mon Jul 12 18:42:39 2021
@@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_NAME "GNU MP"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU MP 6.2.0"
+#define PACKAGE_STRING "GNU MP 6.2.1"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "gmp"
@@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_URL "http://www.gnu.org/software/gmp/;
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "6.2.0"
+#define PACKAGE_VERSION "6.2.1"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
@@ -569,13 +569,13 @@ see https://www.gnu.org/licenses/.
 #define SIZEOF_UNSIGNED 4
 
 /* The size of `unsigned long', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_LONG 4
+#define SIZEOF_UNSIGNED_LONG 8
 
 /* The size of `unsigned short', as computed by sizeof. */
 #define SIZEOF_UNSIGNED_SHORT 2
 
 /* The size of `void *', as computed by sizeof. */
-#define SIZEOF_VOID_P 4
+#define SIZEOF_VOID_P 8
 
 /* Define to 1 if sscanf requires writable inputs */
 /* #undef SSCANF_WRITABLE_INPUT */
@@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/.
 #define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
 
 /* Version number of package */
-#define VERSION "6.2.0"
+#define VERSION "6.2.1"
 
 /* Define to 1 to enable ASSERT checking, per --enable-assert */
 /* #undef WANT_ASSERT */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.1	Sun Apr 25 23:57:47 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4	Mon Jul 12 18:42:39 2021
@@ -27,7 +27,7 @@ changequote(`,')
 ifdef(`__CONFIG_M4_INCLUDED__',,`
 include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
 include_mpn(`mips32/mips-defs.m4')
-define_not_for_expansion(`HAVE_HOST_CPU_mips64')
+define_not_for_expansion(`HAVE_HOST_CPU_mipsn64eb')
 define_not_for_expansion(`HAVE_ABI_n32')
 define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')
 define_not_for_expansion(`HAVE_DOUBLE_IEEE_BIG_ENDIAN')
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.1	Sun Apr 25 23:57:47 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h	Mon Jul 12 18:42:39 2021
@@ -361,11 +361,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) \
-  || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
+#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
@@ -1693,6 +1691,9 @@ __GMP_DECLSPEC int mpn_sec_invert (mp_pt
 #define mpn_sec_invert_itch __MPN(sec_invert_itch)
 __GMP_DECLSPEC mp_size_t mpn_sec_invert_itch (mp_size_t) __GMP_ATTRIBUTE_PURE;
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn_udiv_w_sdiv (mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t);
+
 
 / mpz inlines /
 
@@ -2324,12 +2325,12 @@ enum
 
 /* Define CC and CFLAGS which were used to build this version 

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/lib/libgmp/arch

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 09:34:57 UTC 2021

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64: config.h
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/arm: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/ia64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/riscv32: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/vax: config.h gmp.h

Log Message:
mknative-gmp for GMP 6.2.1 and most platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/gmp.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/ia64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/ia64/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/gmp.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/gmp.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/config.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv32/config.h
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/lib/libgmp/arch/riscv32/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/config.h
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.h
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/config.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/sparc/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/vax/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/gmp.h

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

CVS commit: src/external/lgpl3/gmp

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 07:59:52 UTC 2021

Modified Files:
src/external/lgpl3/gmp: README
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64: config.h config.m4
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/i386: config.h gmp.h

Log Message:
regen for GMP 6.2.1 and i386 and arm64.  update docs so i don't forget
that i mostly got 'native-gmp' working last year.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/lgpl3/gmp/README
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/i386/gmp.h

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/README
diff -u src/external/lgpl3/gmp/README:1.8 src/external/lgpl3/gmp/README:1.9
--- src/external/lgpl3/gmp/README:1.8	Fri Jun  1 21:46:18 2018
+++ src/external/lgpl3/gmp/README	Mon Jul 12 07:59:51 2021
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.8 2018/06/01 21:46:18 mrg Exp $
+$NetBSD: README,v 1.9 2021/07/12 07:59:51 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC >= 4.2.
 
@@ -10,7 +10,20 @@ creates a bunch of symlinks and weeds ou
 files with the same name in different subdirectories linked into the same
 final product.  All of these issues need to be dealt with.
 
-There are a few steps to this:
+There is a mostly-working "mknative" for GMP now.  If this fails, see the
+section below for the old instructions.
+
+	- run a "./build tools libs", possibly setting MKGCC=no if the
+	  GMP port is currently not working at all.
+
+	- cd to tools/gmp, and run $TOOLDIR/bin/nbmake-$arch native-gmp
+
+	- if that works, commit the files it changed in the source tree.
+
+	- set NEWCONFIGDIR=/writeable/src if eg /usr/src is read-only.
+
+These are the old steps, that maybe are necessary to fix the automated
+output:
 
 	- run ./configure, save the output.  you can use the makefile
 	  "Makefile.netbsd-gmp" in this directory to run this with the
@@ -54,9 +67,5 @@ There are a few steps to this:
 The amd64 port is a good reference to compare.
 
 
-This is still a work in progress and methods used to build may be
-changed at any time.
-
-
 m...@netbsd.org
-- 2017/08/22
+- 2021/07/11

Index: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h:1.2	Sun Sep 27 00:31:51 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h	Mon Jul 12 07:59:52 2021
@@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_NAME "GNU MP"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU MP 6.2.0"
+#define PACKAGE_STRING "GNU MP 6.2.1"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "gmp"
@@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_URL "http://www.gnu.org/software/gmp/;
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "6.2.0"
+#define PACKAGE_VERSION "6.2.1"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
@@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/.
 #define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
 
 /* Version number of package */
-#define VERSION "6.2.0"
+#define VERSION "6.2.1"
 
 /* Define to 1 to enable ASSERT checking, per --enable-assert */
 /* #undef WANT_ASSERT */
@@ -641,7 +641,7 @@ see https://www.gnu.org/licenses/.
 
 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
-#define YYTEXT_POINTER 1
+/* #undef YYTEXT_POINTER */
 
 /* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name.  */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4:1.2	Sun Sep 27 00:31:51 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4	Mon Jul 12 07:59:52 2021
@@ -27,6 +27,7 @@ define(,eval(GMP_LIMB_BIT
 changequote(`,')
 ifdef(`__CONFIG_M4_INCLUDED__',,`
 include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
+include_mpn(`arm64/arm64-defs.m4')
 define_not_for_expansion(`HAVE_HOST_CPU_aarch64')
 define_not_for_expansion(`HAVE_ABI_64')
 define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN')
Index: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp.h
diff -u 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 07:04:37 UTC 2021

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: config.h config.m4 gmp.h

Log Message:
regen gmp parts for amd64 and gmp 6.2.1.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h

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/lib/libgmp/arch/x86_64/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h:1.4	Sun Sep 27 00:31:54 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h	Mon Jul 12 07:04:37 2021
@@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_NAME "GNU MP"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU MP 6.2.0"
+#define PACKAGE_STRING "GNU MP 6.2.1"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "gmp"
@@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_URL "http://www.gnu.org/software/gmp/;
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "6.2.0"
+#define PACKAGE_VERSION "6.2.1"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
@@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/.
 /* #undef TUNE_SQR_TOOM2_MAX */
 
 /* Version number of package */
-#define VERSION "6.2.0"
+#define VERSION "6.2.1"
 
 /* Define to 1 to enable ASSERT checking, per --enable-assert */
 /* #undef WANT_ASSERT */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4:1.4	Sun Sep 27 00:31:54 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4	Mon Jul 12 07:04:37 2021
@@ -19,6 +19,7 @@ define(, <.L>)
 define(, <.long>)
 define(,)
 define(,)
+define(, )
 define(,<34>)
 define(,<16>)
 define(,<4>)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.5	Sun Sep 27 00:31:54 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h	Mon Jul 12 07:04:37 2021
@@ -361,11 +361,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) \
-  || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
+#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
@@ -1693,6 +1691,9 @@ __GMP_DECLSPEC int mpn_sec_invert (mp_pt
 #define mpn_sec_invert_itch __MPN(sec_invert_itch)
 __GMP_DECLSPEC mp_size_t mpn_sec_invert_itch (mp_size_t) __GMP_ATTRIBUTE_PURE;
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn_udiv_w_sdiv (mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t);
+
 
 / mpz inlines /
 
@@ -2329,7 +2330,7 @@ enum
 /* Major version number is the value of __GNU_MP__ too, above. */
 #define __GNU_MP_VERSION6
 #define __GNU_MP_VERSION_MINOR  2
-#define __GNU_MP_VERSION_PATCHLEVEL 0
+#define __GNU_MP_VERSION_PATCHLEVEL 1
 #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 1 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
 
 #define __GMP_H__



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/lib/libgmp/arch/mipsn64el

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 23:58:23 UTC 2021

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h srcs.mk

Log Message:
Copied from mips64el


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/srcs.mk

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

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc:1.1
--- /dev/null	Sun Apr 25 19:58:23 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc	Sun Apr 25 19:58:23 2021
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile.inc,v 1.1 2021/04/25 23:58:23 christos Exp $
+
+COPTS+=		-Wno-error
+
+GMP_LIMB_BITS=64
+
+.include "srcs.mk"
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h:1.1
--- /dev/null	Sun Apr 25 19:58:23 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h	Sun Apr 25 19:58:23 2021
@@ -0,0 +1,668 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996-2020 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of either:
+
+  * the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+or
+
+  * the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any
+later version.
+
+or both in parallel, as here.
+
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received copies of the GNU General Public License and the
+GNU Lesser General Public License along with the GNU MP Library.  If not,
+see https://www.gnu.org/licenses/.
+*/
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* The gmp-mparam.h file (a string) the tune program should suggest updating.
+   */
+#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h"
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define to 1 if alloca() works (via gmp-impl.h). */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have  and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */
+#define HAVE_ATTRIBUTE_CONST 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */
+#define HAVE_ATTRIBUTE_MALLOC 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX)))
+   */
+#define HAVE_ATTRIBUTE_MODE 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */
+#define HAVE_ATTRIBUTE_NORETURN 1
+
+/* Define to 1 if you have the `attr_get' function. */
+/* #undef HAVE_ATTR_GET */
+
+/* Define to 1 if tests/libtests has calling conventions checking for the CPU
+   */
+/* #undef HAVE_CALLING_CONVENTIONS */
+
+/* Define to 1 if you have the `clock' function. */
+#define HAVE_CLOCK 1
+
+/* Define to 1 if you have the `clock_gettime' function */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the `cputime' function. */
+/* #undef HAVE_CPUTIME */
+
+/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_FGETC 1
+
+/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't.
+   */
+#define HAVE_DECL_FSCANF 1
+
+/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't.
+   */
+#define HAVE_DECL_OPTARG 1
+
+/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_ERRLIST 1
+
+/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_NERR 1
+
+/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_UNGETC 1
+
+/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL_VFPRINTF 1
+
+/* Define to 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 23:57:47 UTC 2021

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h srcs.mk

Log Message:
copied from mips64eb


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/srcs.mk

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

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc:1.1
--- /dev/null	Sun Apr 25 19:57:48 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc	Sun Apr 25 19:57:47 2021
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile.inc,v 1.1 2021/04/25 23:57:47 christos Exp $
+
+COPTS+=		-Wno-error
+
+GMP_LIMB_BITS=64
+
+.include "srcs.mk"
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1
--- /dev/null	Sun Apr 25 19:57:48 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h	Sun Apr 25 19:57:47 2021
@@ -0,0 +1,668 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996-2020 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of either:
+
+  * the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+or
+
+  * the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any
+later version.
+
+or both in parallel, as here.
+
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received copies of the GNU General Public License and the
+GNU Lesser General Public License along with the GNU MP Library.  If not,
+see https://www.gnu.org/licenses/.
+*/
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* The gmp-mparam.h file (a string) the tune program should suggest updating.
+   */
+#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h"
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define to 1 if alloca() works (via gmp-impl.h). */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have  and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */
+#define HAVE_ATTRIBUTE_CONST 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */
+#define HAVE_ATTRIBUTE_MALLOC 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX)))
+   */
+#define HAVE_ATTRIBUTE_MODE 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */
+#define HAVE_ATTRIBUTE_NORETURN 1
+
+/* Define to 1 if you have the `attr_get' function. */
+/* #undef HAVE_ATTR_GET */
+
+/* Define to 1 if tests/libtests has calling conventions checking for the CPU
+   */
+/* #undef HAVE_CALLING_CONVENTIONS */
+
+/* Define to 1 if you have the `clock' function. */
+#define HAVE_CLOCK 1
+
+/* Define to 1 if you have the `clock_gettime' function */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the `cputime' function. */
+/* #undef HAVE_CPUTIME */
+
+/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_FGETC 1
+
+/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't.
+   */
+#define HAVE_DECL_FSCANF 1
+
+/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't.
+   */
+#define HAVE_DECL_OPTARG 1
+
+/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_ERRLIST 1
+
+/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_NERR 1
+
+/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_UNGETC 1
+
+/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL_VFPRINTF 1
+
+/* Define to 

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/lib/libgmp/arch

2020-09-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Sep 27 21:19:36 UTC 2020

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: config.h config.m4
gmp-mparam.h gmp.h srcs.mk
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h config.m4
gmp-mparam.h gmp.h srcs.mk

Log Message:
re-run native-gmp for gmp 6.2.0 and arm:  run with a v4 toolchain
instead of a v7 toolchain, so it works on all.

should fix latest build mess.

future: test the speed of this vs armv[567] specific on armv[567].


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/arm/srcs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp-mparam.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/srcs.mk

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/lib/libgmp/arch/arm/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h:1.5	Sun Sep 27 00:31:51 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h	Sun Sep 27 21:19:36 2020
@@ -37,7 +37,7 @@ see https://www.gnu.org/licenses/.
 
 /* The gmp-mparam.h file (a string) the tune program should suggest updating.
*/
-#define GMP_MPARAM_H_SUGGEST "./mpn/arm/v7a/cora5/gmp-mparam.h"
+#define GMP_MPARAM_H_SUGGEST "./mpn/arm/gmp-mparam.h"
 
 /* Define to 1 if you have the `alarm' function. */
 #define HAVE_ALARM 1
@@ -278,8 +278,8 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
 /* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
 /* #undef HAVE_NATIVE_mpn_addmul_1c */
-#define HAVE_NATIVE_mpn_addmul_2 1
-#define HAVE_NATIVE_mpn_addmul_3 1
+/* #undef HAVE_NATIVE_mpn_addmul_2 */
+/* #undef HAVE_NATIVE_mpn_addmul_3 */
 /* #undef HAVE_NATIVE_mpn_addmul_4 */
 /* #undef HAVE_NATIVE_mpn_addmul_5 */
 /* #undef HAVE_NATIVE_mpn_addmul_6 */
@@ -300,13 +300,13 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_div_qr_2 */
 #define HAVE_NATIVE_mpn_divexact_1 1
 /* #undef HAVE_NATIVE_mpn_divexact_by3c */
-#define HAVE_NATIVE_mpn_divrem_1 1
+/* #undef HAVE_NATIVE_mpn_divrem_1 */
 /* #undef HAVE_NATIVE_mpn_divrem_1c */
 /* #undef HAVE_NATIVE_mpn_divrem_2 */
 /* #undef HAVE_NATIVE_mpn_gcd_1 */
-#define HAVE_NATIVE_mpn_gcd_11 1
-#define HAVE_NATIVE_mpn_gcd_22 1
-#define HAVE_NATIVE_mpn_hamdist 1
+/* #undef HAVE_NATIVE_mpn_gcd_11 */
+/* #undef HAVE_NATIVE_mpn_gcd_22 */
+/* #undef HAVE_NATIVE_mpn_hamdist */
 #define HAVE_NATIVE_mpn_invert_limb 1
 #define HAVE_NATIVE_mpn_ior_n 1
 #define HAVE_NATIVE_mpn_iorn_n 1
@@ -314,16 +314,16 @@ see https://www.gnu.org/licenses/.
 #define HAVE_NATIVE_mpn_lshiftc 1
 /* #undef HAVE_NATIVE_mpn_lshsub_n */
 /* #undef HAVE_NATIVE_mpn_mod_1 */
-#define HAVE_NATIVE_mpn_mod_1_1p 1
+/* #undef HAVE_NATIVE_mpn_mod_1_1p */
 /* #undef HAVE_NATIVE_mpn_mod_1c */
-#define HAVE_NATIVE_mpn_mod_1s_2p 1
+/* #undef HAVE_NATIVE_mpn_mod_1s_2p */
 /* #undef HAVE_NATIVE_mpn_mod_1s_4p */
 #define HAVE_NATIVE_mpn_mod_34lsub1 1
 /* #undef HAVE_NATIVE_mpn_modexact_1_odd */
 #define HAVE_NATIVE_mpn_modexact_1c_odd 1
 #define HAVE_NATIVE_mpn_mul_1 1
 /* #undef HAVE_NATIVE_mpn_mul_1c */
-#define HAVE_NATIVE_mpn_mul_2 1
+/* #undef HAVE_NATIVE_mpn_mul_2 */
 /* #undef HAVE_NATIVE_mpn_mul_3 */
 /* #undef HAVE_NATIVE_mpn_mul_4 */
 /* #undef HAVE_NATIVE_mpn_mul_5 */
@@ -332,8 +332,8 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_mullo_basecase */
 #define HAVE_NATIVE_mpn_nand_n 1
 #define HAVE_NATIVE_mpn_nior_n 1
-#define HAVE_NATIVE_mpn_popcount 1
-#define HAVE_NATIVE_mpn_preinv_divrem_1 1
+/* #undef HAVE_NATIVE_mpn_popcount */
+/* #undef HAVE_NATIVE_mpn_preinv_divrem_1 */
 /* #undef HAVE_NATIVE_mpn_preinv_mod_1 */
 /* #undef HAVE_NATIVE_mpn_redc_1 */
 /* #undef HAVE_NATIVE_mpn_redc_2 */
@@ -349,7 +349,7 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
 #define HAVE_NATIVE_mpn_rshift 1
 /* #undef HAVE_NATIVE_mpn_sbpi1_bdiv_r */
-#define HAVE_NATIVE_mpn_sqr_basecase 1
+/* #undef HAVE_NATIVE_mpn_sqr_basecase */
 /* #undef HAVE_NATIVE_mpn_sqr_diagonal */
 /* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
 #define HAVE_NATIVE_mpn_sub_n 1
@@ -587,7 +587,7 @@ see https://www.gnu.org/licenses/.
 #define TIME_WITH_SYS_TIME 1
 
 /* Maximum size the tune 

CVS commit: src/external/lgpl3/gmp

2020-09-26 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Sep 26 20:58:48 UTC 2020

Modified Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp build-gmp-Makefile.inc.awk

Log Message:
update slightly to enable 'native-gmp' target from tools/gmp to work.
call the awk script on 'config.log', which has (almost) the same output
as the stdout of ./configure, and automatically store it as 'srcs.mk'.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/Makefile.netbsd-gmp
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk

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/Makefile.netbsd-gmp
diff -u src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.5 src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.6
--- src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.5	Tue Aug 22 09:57:18 2017
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Sat Sep 26 20:58:48 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.netbsd-gmp,v 1.5 2017/08/22 09:57:18 mrg Exp $
+# $NetBSD: Makefile.netbsd-gmp,v 1.6 2020/09/26 20:58:48 mrg Exp $
 
 # hack makefile to help build gmp ./configure
 
@@ -25,6 +25,7 @@ all:
 
 copy-files:
 	cd build && cp gmp.h gmp-mparam.h config.h config.m4 ${ARCHDIR}
+	awk -f ${NETBSDSRCDIR}/external/lgpl3/gmp/build-gmp-Makefile.inc.awk < build/config.log > ${ARCHDIR}/srcs.mk
 	sed -i -e 's/define.*CONFIG_TOP_SRCDIR.*//' ${ARCHDIR}/config.m4
 	sed -i -e 's/__GMP_CC.*/__GMP_CC "gcc"/' ${ARCHDIR}/gmp.h
 	sed -i -e 's/GMP_MPARAM_H_SUGGEST[ 	]"\/.*dist\/mpn/GMP_MPARAM_H_SUGGEST ".\/mpn/' ${ARCHDIR}/config.h

Index: src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk
diff -u src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.4 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.5
--- src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.4	Tue Aug 22 09:57:18 2017
+++ src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk	Sat Sep 26 20:58:48 2020
@@ -1,6 +1,6 @@
 #! /usr/bin/awk -f
 
-/^config.status: linking/ {
+/^config.status(:[0-9]*:|:) linking/ {
 	# $3 = src
 	# $5 = dst
 



CVS commit: src/external/lgpl3/gmp

2020-09-02 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Wed Sep  2 15:15:30 UTC 2020

Modified Files:
src/external/lgpl3/gmp: Makefile.arch

Log Message:
Teach native gmp about aarch64eb


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

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/Makefile.arch
diff -u src/external/lgpl3/gmp/Makefile.arch:1.2 src/external/lgpl3/gmp/Makefile.arch:1.3
--- src/external/lgpl3/gmp/Makefile.arch:1.2	Tue Aug 22 09:59:37 2017
+++ src/external/lgpl3/gmp/Makefile.arch	Wed Sep  2 15:15:30 2020
@@ -1,3 +1,3 @@
-#	$NetBSD: Makefile.arch,v 1.2 2017/08/22 09:59:37 mrg Exp $
+#	$NetBSD: Makefile.arch,v 1.3 2020/09/02 15:15:30 jakllsch Exp $
 
-GMP_MACHINE_ARCH?=	${MACHINE_ARCH:C/e?arm(v[4567])?(hf)?/arm/}
+GMP_MACHINE_ARCH?=	${MACHINE_ARCH:C/e?arm(v[4567])?(hf)?/arm/:C/aarch64eb/aarch64/}



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/riscv64

2019-04-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr 15 14:02:23 UTC 2019

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64: Makefile.inc gmp.h

Log Message:
Fake mknative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/gmp.h

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/lib/libgmp/arch/riscv64/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc:1.1	Fri Sep 19 17:23:57 2014
+++ src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc	Mon Apr 15 14:02:23 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2014/09/19 17:23:57 matt Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2019/04/15 14:02:23 maya Exp $
 
 SRCS+= \
 	random.c \
@@ -15,7 +15,6 @@ SRCS+= \
 	toom8h_mul.c \
 	zero.c \
 	mod_1_4.c \
-	gcdext.c \
 	add_err3_n.c \
 	binvert.c \
 	mu_div_q.c \
@@ -26,14 +25,12 @@ SRCS+= \
 	dcpi1_div_qr.c \
 	hgcd_reduce.c \
 	matrix22_mul1_inverse_vector.c \
-	tabselect.c \
 	toom6_sqr.c \
 	divrem_1.c \
 	hgcd_step.c \
 	sub_err3_n.c \
 	mod_1.c \
 	toom42_mulmid.c \
-	divexact.c \
 	jacobi.c \
 	powlo.c \
 	mul.c \
@@ -65,7 +62,6 @@ SRCS+= \
 	rshift.c \
 	div_q.c \
 	jacbase.c \
-	addcnd_n.c \
 	hgcd_matrix.c \
 	toom_eval_dgr3_pm1.c \
 	mullo_n.c \
@@ -77,7 +73,6 @@ SRCS+= \
 	add_1.c \
 	sqr_basecase.c \
 	toom_interpolate_5pts.c \
-	sbpi1_bdiv_q.c \
 	pre_mod_1.c \
 	hgcd.c \
 	bdiv_dbm1c.c \
@@ -97,11 +92,9 @@ SRCS+= \
 	sub_n.c \
 	toom_eval_pm2.c \
 	add_n.c \
-	subcnd_n.c \
 	hgcd2.c \
 	toom62_mul.c \
 	comb_tables.c \
-	sbpi1_bdiv_qr.c \
 	sub_err2_n.c \
 	scan1.c \
 	brootinv.c \
@@ -136,10 +129,8 @@ SRCS+= \
 	dive_1.c \
 	cmp.c \
 	toom_eval_pm1.c \
-	hgcd_appr.c \
 	scan0.c \
 	gcd_subdiv_step.c \
-	sbpi1_div_qr.c \
 	invert.c \
 	sub.c \
 	toom_eval_pm2rexp.c \
@@ -155,30 +146,187 @@ SRCS+= \
 	pow_1.c \
 	get_d.c \
 	toom52_mul.c \
-	sbpi1_div_q.c \
 	diveby3.c \
 	fib2_ui.c \
 	bdiv_qr.c \
 	hgcd_jacobi.c \
 	toom3_sqr.c \
-	gcd.c \
 	redc_n.c \
 	sub_err1_n.c \
 
 C_SRCS_LIST= \
-	xor_n.c			mpn/generic/logops_n.c \
-	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
-	nand_n.c		mpn/generic/logops_n.c \
-	nior_n.c		mpn/generic/logops_n.c \
+	random.c		mpn/generic/random.c \
+	toom_interpolate_7pts.c		mpn/generic/toom_interpolate_7pts.c \
+	sbpi1_divappr_q.c		mpn/generic/sbpi1_divappr_q.c \
+	random2.c		mpn/generic/random2.c \
+	mu_bdiv_q.c		mpn/generic/mu_bdiv_q.c \
+	mulmid_basecase.c		mpn/generic/mulmid_basecase.c \
+	jacobi_2.c		mpn/generic/jacobi_2.c \
+	toom32_mul.c		mpn/generic/toom32_mul.c \
+	toom44_mul.c		mpn/generic/toom44_mul.c \
+	toom8h_mul.c		mpn/generic/toom8h_mul.c \
+	toom2_sqr.c		mpn/generic/toom2_sqr.c \
+	zero.c		mpn/generic/zero.c \
+	mod_1_4.c		mpn/generic/mod_1_4.c \
+	gcdext.c		mpn/generic/gcdext.c \
 	hamdist.c		mpn/generic/popham.c \
-	popcount.c		mpn/generic/popham.c \
-	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
-	and_n.c			mpn/generic/logops_n.c \
-	ior_n.c			mpn/generic/logops_n.c \
-	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	sec_powm.c		mpn/generic/sec_powm.c \
+	add_err3_n.c		mpn/generic/add_err3_n.c \
+	binvert.c		mpn/generic/binvert.c \
+	mu_div_q.c		mpn/generic/mu_div_q.c \
+	and_n.c		mpn/generic/logops_n.c \
+	invertappr.c		mpn/generic/invertappr.c \
+	add_n_sub_n.c		mpn/generic/add_n_sub_n.c \
+	dump.c		mpn/generic/dump.c \
+	mu_divappr_q.c		mpn/generic/mu_divappr_q.c \
+	dcpi1_div_qr.c		mpn/generic/dcpi1_div_qr.c \
+	hgcd_reduce.c		mpn/generic/hgcd_reduce.c \
+	matrix22_mul1_inverse_vector.c		mpn/generic/matrix22_mul1_inverse_vector.c \
+	toom6_sqr.c		mpn/generic/toom6_sqr.c \
+	divrem_1.c		mpn/generic/divrem_1.c \
+	hgcd_step.c		mpn/generic/hgcd_step.c \
+	sub_err3_n.c		mpn/generic/sub_err3_n.c \
+	mod_1.c		mpn/generic/mod_1.c \
+	toom42_mulmid.c		mpn/generic/toom42_mulmid.c \
+	sec_div_qr.c		mpn/generic/sec_div.c \
+	andn_n.c		mpn/generic/logops_n.c \
+	divexact.c		mpn/generic/divexact.c \
+	jacobi.c		mpn/generic/jacobi.c \
+	powlo.c		mpn/generic/powlo.c \
+	mul.c		mpn/generic/mul.c \
+	set_str.c		mpn/generic/set_str.c \
+	toom42_mul.c		mpn/generic/toom42_mul.c \
+	toom_interpolate_6pts.c		mpn/generic/toom_interpolate_6pts.c \
+	toom54_mul.c		mpn/generic/toom54_mul.c \
+	dcpi1_divappr_q.c		mpn/generic/dcpi1_divappr_q.c \
+	toom_eval_dgr3_pm2.c		mpn/generic/toom_eval_dgr3_pm2.c \
+	mod_1_3.c		mpn/generic/mod_1_3.c \
+	xor_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	toom_couple_handling.c		mpn/generic/toom_couple_handling.c \
+	add.c		mpn/generic/add.c \
+	div_qr_2.c		mpn/generic/div_qr_2.c \
+	toom_interpolate_12pts.c		mpn/generic/toom_interpolate_12pts.c \
+	perfsqr.c		mpn/generic/perfsqr.c \
+	

CVS commit: src/external/lgpl3/gmp/lib/libgmp

2018-09-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Sep  4 06:09:31 UTC 2018

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
add missing sources needed by new mpfr/mpc.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.27 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.28
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.27	Tue Aug 22 09:59:37 2017
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Tue Sep  4 06:09:31 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.27 2017/08/22 09:59:37 mrg Exp $
+#	$NetBSD: Makefile,v 1.28 2018/09/04 06:09:31 mrg Exp $
 
 .include 
 
@@ -72,9 +72,12 @@ MPZ_SRCS = \
 	millerrabin.c mod.c mul.c mul_2exp.c		\
 	mul_si.c mul_ui.c\
 	n_pow_ui.c neg.c nextprime.c			\
+	oddfac_1.c	\
 	out_raw.c out_str.c perfpow.c perfsqr.c		\
 	popcount.c pow_ui.c powm.c			\
-	powm_ui.c pprime_p.c random.c random2.c		\
+	powm_ui.c pprime_p.c \
+	prodlimbs.c	\
+	random.c random2.c\
 	realloc.c realloc2.c remove.c			\
 	roinit_n.c	\
 	root.c rootrem.c rrandomb.c scan0.c		\
@@ -125,7 +128,7 @@ SRCS+= 	\
 	mp_bpl.c mp_clz_tab.c mp_dv_tab.c mp_minv_tab.c mp_get_fns.c	\
 	mp_set_fns.c randclr.c randdef.c randiset.c randlc2s.c 	\
 	randlc2x.c randmt.c randmts.c rands.c randsd.c randsdui.c 	\
-	randbui.c randmui.c version.c nextprime.c
+	randbui.c randmui.c version.c nextprime.c primesieve.c
 
 SRCS+=	tal-reent.c
 



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64

2018-07-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jul 14 23:49:20 UTC 2018

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h

Log Message:
aarch64 files for gmp


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp.h

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

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc:1.1
--- /dev/null	Sat Jul 14 19:49:20 2018
+++ src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc	Sat Jul 14 19:49:20 2018
@@ -0,0 +1,197 @@
+#	$NetBSD: Makefile.inc,v 1.1 2018/07/14 23:49:20 christos Exp $
+
+GMP_LIMB_BITS=64
+
+C_SRCS_LIST= \
+	add.c	mpn/generic/add.c \
+	add_1.c	mpn/generic/add_1.c \
+	add_err1_n.c	mpn/generic/add_err1_n.c \
+	add_err2_n.c	mpn/generic/add_err2_n.c \
+	add_err3_n.c	mpn/generic/add_err3_n.c \
+	add_n_sub_n.c	mpn/generic/add_n_sub_n.c \
+	bdiv_q.c	mpn/generic/bdiv_q.c \
+	bdiv_q_1.c	mpn/generic/bdiv_q_1.c \
+	bdiv_qr.c	mpn/generic/bdiv_qr.c \
+	binvert.c	mpn/generic/binvert.c \
+	broot.c	mpn/generic/broot.c \
+	brootinv.c	mpn/generic/brootinv.c \
+	bsqrt.c	mpn/generic/bsqrt.c \
+	bsqrtinv.c	mpn/generic/bsqrtinv.c \
+	cmp.c	mpn/generic/cmp.c \
+	cnd_swap.c	mpn/generic/cnd_swap.c \
+	comb_tables.c	mpn/generic/comb_tables.c \
+	dcpi1_bdiv_q.c	mpn/generic/dcpi1_bdiv_q.c \
+	dcpi1_bdiv_qr.c	mpn/generic/dcpi1_bdiv_qr.c \
+	dcpi1_div_q.c	mpn/generic/dcpi1_div_q.c \
+	dcpi1_div_qr.c	mpn/generic/dcpi1_div_qr.c \
+	dcpi1_divappr_q.c	mpn/generic/dcpi1_divappr_q.c \
+	div_q.c	mpn/generic/div_q.c \
+	div_qr_1.c	mpn/generic/div_qr_1.c \
+	div_qr_1n_pi1.c	mpn/generic/div_qr_1n_pi1.c \
+	div_qr_2.c	mpn/generic/div_qr_2.c \
+	div_qr_2n_pi1.c	mpn/generic/div_qr_2n_pi1.c \
+	div_qr_2u_pi1.c	mpn/generic/div_qr_2u_pi1.c \
+	dive_1.c	mpn/generic/dive_1.c \
+	diveby3.c	mpn/generic/diveby3.c \
+	divexact.c	mpn/generic/divexact.c \
+	divis.c	mpn/generic/divis.c \
+	divrem.c	mpn/generic/divrem.c \
+	divrem_1.c	mpn/generic/divrem_1.c \
+	divrem_2.c	mpn/generic/divrem_2.c \
+	dump.c	mpn/generic/dump.c \
+	fib2_ui.c	mpn/generic/fib2_ui.c \
+	gcd.c	mpn/generic/gcd.c \
+	gcd_subdiv_step.c	mpn/generic/gcd_subdiv_step.c \
+	gcdext.c	mpn/generic/gcdext.c \
+	gcdext_1.c	mpn/generic/gcdext_1.c \
+	gcdext_lehmer.c	mpn/generic/gcdext_lehmer.c \
+	get_d.c	mpn/generic/get_d.c \
+	get_str.c	mpn/generic/get_str.c \
+	hgcd.c	mpn/generic/hgcd.c \
+	hgcd2.c	mpn/generic/hgcd2.c \
+	hgcd2_jacobi.c	mpn/generic/hgcd2_jacobi.c \
+	hgcd_appr.c	mpn/generic/hgcd_appr.c \
+	hgcd_jacobi.c	mpn/generic/hgcd_jacobi.c \
+	hgcd_matrix.c	mpn/generic/hgcd_matrix.c \
+	hgcd_reduce.c	mpn/generic/hgcd_reduce.c \
+	hgcd_step.c	mpn/generic/hgcd_step.c \
+	invert.c	mpn/generic/invert.c \
+	invertappr.c	mpn/generic/invertappr.c \
+	jacbase.c	mpn/generic/jacbase.c \
+	jacobi.c	mpn/generic/jacobi.c \
+	jacobi_2.c	mpn/generic/jacobi_2.c \
+	lshiftc.c	mpn/generic/lshiftc.c \
+	matrix22_mul.c	mpn/generic/matrix22_mul.c \
+	matrix22_mul1_inverse_vector.c	mpn/generic/matrix22_mul1_inverse_vector.c \
+	mod_1.c	mpn/generic/mod_1.c \
+	mod_1_1.c	mpn/generic/mod_1_1.c \
+	mod_1_2.c	mpn/generic/mod_1_2.c \
+	mod_1_3.c	mpn/generic/mod_1_3.c \
+	mod_1_4.c	mpn/generic/mod_1_4.c \
+	mode1o.c	mpn/generic/mode1o.c \
+	mu_bdiv_q.c	mpn/generic/mu_bdiv_q.c \
+	mu_bdiv_qr.c	mpn/generic/mu_bdiv_qr.c \
+	mu_div_q.c	mpn/generic/mu_div_q.c \
+	mu_div_qr.c	mpn/generic/mu_div_qr.c \
+	mu_divappr_q.c	mpn/generic/mu_divappr_q.c \
+	mul.c	mpn/generic/mul.c \
+	mul_basecase.c	mpn/generic/mul_basecase.c \
+	mul_fft.c	mpn/generic/mul_fft.c \
+	mul_n.c	mpn/generic/mul_n.c \
+	mullo_basecase.c	mpn/generic/mullo_basecase.c \
+	mullo_n.c	mpn/generic/mullo_n.c \
+	mulmid.c	mpn/generic/mulmid.c \
+	mulmid_basecase.c	mpn/generic/mulmid_basecase.c \
+	mulmid_n.c	mpn/generic/mulmid_n.c \
+	mulmod_bnm1.c	mpn/generic/mulmod_bnm1.c \
+	neg.c	mpn/generic/neg.c \
+	nussbaumer_mul.c	mpn/generic/nussbaumer_mul.c \
+	perfpow.c	mpn/generic/perfpow.c \
+	perfsqr.c	mpn/generic/perfsqr.c \
+	pow_1.c	mpn/generic/pow_1.c \
+	powlo.c	mpn/generic/powlo.c \
+	powm.c	mpn/generic/powm.c \
+	pre_divrem_1.c	mpn/generic/pre_divrem_1.c \
+	pre_mod_1.c	mpn/generic/pre_mod_1.c \
+	random.c	mpn/generic/random.c \
+	random2.c	mpn/generic/random2.c \
+	redc_1.c	mpn/generic/redc_1.c \
+	redc_2.c	mpn/generic/redc_2.c \
+	redc_n.c	mpn/generic/redc_n.c \
+	remove.c	mpn/generic/remove.c \
+	rootrem.c	mpn/generic/rootrem.c \
+	sbpi1_bdiv_q.c	mpn/generic/sbpi1_bdiv_q.c \
+	sbpi1_bdiv_qr.c	mpn/generic/sbpi1_bdiv_qr.c \

CVS commit: src/external/lgpl3/gmp

2018-06-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jun  1 21:46:19 UTC 2018

Modified Files:
src/external/lgpl3/gmp: README

Log Message:
commit some note updates i wrote last august.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/lgpl3/gmp/README

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/README
diff -u src/external/lgpl3/gmp/README:1.7 src/external/lgpl3/gmp/README:1.8
--- src/external/lgpl3/gmp/README:1.7	Thu Aug 17 23:00:38 2017
+++ src/external/lgpl3/gmp/README	Fri Jun  1 21:46:18 2018
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.7 2017/08/17 23:00:38 mrg Exp $
+$NetBSD: README,v 1.8 2018/06/01 21:46:18 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC >= 4.2.
 
@@ -25,11 +25,11 @@ There are a few steps to this:
 
 	  some of these files might have src/obj references.  in particular
 	  fix GMP_MPARAM_H_SUGGEST to start from ./mpn/... and make sure
-	  we #define __GMP_CC to "gcc -std=gnu99", and make sure that
+	  we #define __GMP_CC to just "gcc", and make sure that
 	  CONFIG_TOP_SRCDIR is not defined in config.m4
 
-	  XXX  make this automatic
-
+	  the "Makefile.netbsd-gmp" has a "copy-files" target that performs
+	  these tasks.
 
 	- parse the ./configure output and note all created symlinks
 	  for mpn.  these need to be converted into a new Makefile.inc.
@@ -43,12 +43,15 @@ There are a few steps to this:
 	  used is m4 to parse, and we and create .s files from the .asm
 	  files that we then we feed into $CC.
 
-The amd64 port is a good reference to compare.
+	  this part needs to be automated, but requires that the first
+	  part's ./configure output be stored for it.  this is not done.
 
-This mips64* ports need some minor hacks to the generated gmp*.h
-files to fix their library builds for compat issues.  See these
-files in:
-	http://mail-index.netbsd.org/source-changes/2011/07/10/msg024467.html
+	  it would be good to convert the Makefile.inc into a pair of
+	  files -- srcs.mk generated from build-gmp-Makefile.inc.awk, and
+	  the remaining static part of the Makefile.inc left with the
+	  include of srcs.mk.
+
+The amd64 port is a good reference to compare.
 
 
 This is still a work in progress and methods used to build may be
@@ -56,4 +59,4 @@ changed at any time.
 
 
 m...@netbsd.org
-- 2011/06/22
+- 2017/08/22



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

2017-08-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Aug 22 09:57:18 UTC 2017

Modified Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp build-gmp-Makefile.inc.awk

Log Message:
update these for GMP 6.1.2, and start to make it more automatic.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/Makefile.netbsd-gmp
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk

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/Makefile.netbsd-gmp
diff -u src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.4 src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.5
--- src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.4	Tue Mar 18 18:20:36 2014
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Tue Aug 22 09:57:18 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.netbsd-gmp,v 1.4 2014/03/18 18:20:36 riastradh Exp $
+# $NetBSD: Makefile.netbsd-gmp,v 1.5 2017/08/22 09:57:18 mrg Exp $
 
 # hack makefile to help build gmp ./configure
 
@@ -15,5 +15,18 @@ ENV_ARGS=\
 			NM=${NM:Q} OBJDUMP=${OBJDUMP:Q} \
 			LIBS=-lintl
 
+.include "Makefile.arch"
+NEWCONFIGDIR?=	${NETBSDSRCDIR}
+ARCHDIR=	${NEWCONFIGDIR}/external/lgpl3/gmp/lib/libgmp/arch/${GMP_MACHINE_ARCH}
+
 all:
-	env ${ENV_ARGS} ${NETBSDSRCDIR}/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}
+	mkdir -p build
+	cd build && env ${ENV_ARGS} ${NETBSDSRCDIR}/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}
+
+copy-files:
+	cd build && cp gmp.h gmp-mparam.h config.h config.m4 ${ARCHDIR}
+	sed -i -e 's/define.*CONFIG_TOP_SRCDIR.*//' ${ARCHDIR}/config.m4
+	sed -i -e 's/__GMP_CC.*/__GMP_CC "gcc"/' ${ARCHDIR}/gmp.h
+	sed -i -e 's/GMP_MPARAM_H_SUGGEST[ 	]"\/.*dist\/mpn/GMP_MPARAM_H_SUGGEST ".\/mpn/' ${ARCHDIR}/config.h
+
+.include 

Index: src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk
diff -u src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.3 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.4
--- src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.3	Sat Jul  2 14:03:20 2011
+++ src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk	Tue Aug 22 09:57:18 2017
@@ -7,25 +7,25 @@
 	sub(/mpn\//, "", $5)
 	sub(/.*external\/lgpl3\/gmp\/dist\//, "", $3)
 
-	srcname = $3
-	sub(/.*\//, "", srcname)
+	#srcname = $3
+	#sub(/mpn\//, "", srcname)
 
 	if (match($3, /\.c$/)) {
-		if ($5 == srcname) {
-			c_list[$5] = $3
-		} else {
+		#if ($5 == srcname) {
+		#	c_list[$5] = $3
+		#} else {
 			c_src_list[$5] = $3
-		}
+		#}
 	} else if (match($3, /\.(asm|s|S)$/)) {
 		asm_list[$5] = $3
 	}
 }
 
 END {
-	printf("SRCS+= \\\n");
-	for (c in c_list) {
-		printf("\t%s \\\n", c)
-	}
+	#printf("MPN_SRCS+= \\\n");
+	#for (c in c_list) {
+	#	printf("\t%s \\\n", c)
+	#}
 	printf("\nC_SRCS_LIST= \\\n");
 	for (c in c_src_list) {
 		printf("\t%s\t\t%s \\\n", c, c_src_list[c])



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2017-08-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Aug 22 08:26:42 UTC 2017

Removed Files:
src/external/lgpl3/gmp/lib/libgmp: shlib_version

Log Message:
remove unused file


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/shlib_version

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



CVS commit: src/external/lgpl3/gmp

2017-08-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 23:00:38 UTC 2017

Modified Files:
src/external/lgpl3/gmp: README

Log Message:
mp.h was removed a while ago.  update the README to note this, and
remove the note about trialdivtab.h which was done.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/README

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/README
diff -u src/external/lgpl3/gmp/README:1.6 src/external/lgpl3/gmp/README:1.7
--- src/external/lgpl3/gmp/README:1.6	Wed Dec  4 11:43:52 2013
+++ src/external/lgpl3/gmp/README	Thu Aug 17 23:00:38 2017
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.6 2013/12/04 11:43:52 mrg Exp $
+$NetBSD: README,v 1.7 2017/08/17 23:00:38 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC >= 4.2.
 
@@ -22,7 +22,6 @@ There are a few steps to this:
 		config.m4
 		gmp-mparam.h
 		gmp.h
-		mp.h
 
 	  some of these files might have src/obj references.  in particular
 	  fix GMP_MPARAM_H_SUGGEST to start from ./mpn/... and make sure
@@ -44,8 +43,7 @@ There are a few steps to this:
 	  used is m4 to parse, and we and create .s files from the .asm
 	  files that we then we feed into $CC.
 
-The amd64 port is a good reference to compare.  The trialdivtab.h
-generation may need to be moved the into libgmp/Makefile itself.
+The amd64 port is a good reference to compare.
 
 This mips64* ports need some minor hacks to the generated gmp*.h
 files to fix their library builds for compat issues.  See these



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 02:17:00 UTC 2017

Removed Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: mp.h

Log Message:
remove file that died 4 years ago...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/mp.h

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



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2016-04-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr 12 19:38:41 UTC 2016

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Add -DPIC for PIE builds so that we can avoid text relocations.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.24 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.25
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.24	Wed Dec 18 20:07:03 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Tue Apr 12 15:38:41 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.24 2013/12/19 01:07:03 gdt Exp $
+#	$NetBSD: Makefile,v 1.25 2016/04/12 19:38:41 christos Exp $
 
 .include 
 
@@ -259,3 +259,7 @@ COPTS += -marm
 .endif
 
 CWARNFLAGS.clang+=	-Wno-unused-value -Wno-tautological-compare -Wno-parentheses
+
+.if !empty(CFLAGS:M-fPIE)
+M4FLAGS+=-DPIC
+.endif



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/or1k

2014-09-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Sep  3 19:11:24 UTC 2014

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/or1k: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h

Log Message:
OR1K configury for NetBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/gmp.h

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

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc:1.1
--- /dev/null	Wed Sep  3 19:11:24 2014
+++ src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc	Wed Sep  3 19:11:24 2014
@@ -0,0 +1,184 @@
+#	$NetBSD: Makefile.inc,v 1.1 2014/09/03 19:11:24 matt Exp $
+
+SRCS+= \
+	random.c \
+	toom_interpolate_7pts.c \
+	divrem_2.c \
+	sbpi1_divappr_q.c \
+	random2.c \
+	mu_bdiv_q.c \
+	mulmid_basecase.c \
+	jacobi_2.c \
+	toom32_mul.c \
+	toom2_sqr.c \
+	toom44_mul.c \
+	toom8h_mul.c \
+	zero.c \
+	mod_1_4.c \
+	gcdext.c \
+	add_err3_n.c \
+	binvert.c \
+	mu_div_q.c \
+	invertappr.c \
+	add_n_sub_n.c \
+	dump.c \
+	mu_divappr_q.c \
+	dcpi1_div_qr.c \
+	hgcd_reduce.c \
+	matrix22_mul1_inverse_vector.c \
+	tabselect.c \
+	toom6_sqr.c \
+	divrem_1.c \
+	hgcd_step.c \
+	sub_err3_n.c \
+	mod_1.c \
+	toom42_mulmid.c \
+	divexact.c \
+	jacobi.c \
+	powlo.c \
+	mul.c \
+	set_str.c \
+	toom42_mul.c \
+	toom_interpolate_6pts.c \
+	toom54_mul.c \
+	dcpi1_divappr_q.c \
+	copyd.c \
+	toom_eval_dgr3_pm2.c \
+	mod_1_3.c \
+	com.c \
+	copyi.c \
+	toom_couple_handling.c \
+	lshift.c \
+	add.c \
+	div_qr_2.c \
+	toom_interpolate_12pts.c \
+	perfsqr.c \
+	toom53_mul.c \
+	toom_eval_pm2exp.c \
+	mu_div_qr.c \
+	toom_interpolate_16pts.c \
+	mod_34lsub1.c \
+	bdiv_q.c \
+	toom22_mul.c \
+	bsqrtinv.c \
+	toom4_sqr.c \
+	rshift.c \
+	div_q.c \
+	jacbase.c \
+	addcnd_n.c \
+	hgcd_matrix.c \
+	toom_eval_dgr3_pm1.c \
+	mullo_n.c \
+	toom33_mul.c \
+	mod_1_2.c \
+	sub_1.c \
+	add_err2_n.c \
+	trialdiv.c \
+	add_1.c \
+	sqr_basecase.c \
+	toom_interpolate_5pts.c \
+	sbpi1_bdiv_q.c \
+	pre_mod_1.c \
+	hgcd.c \
+	bdiv_dbm1c.c \
+	sqrtrem.c \
+	bdiv_q_1.c \
+	gcdext_1.c \
+	toom63_mul.c \
+	div_qr_2u_pi1.c \
+	toom8_sqr.c \
+	mul_basecase.c \
+	addmul_1.c \
+	neg.c \
+	gcdext_lehmer.c \
+	divis.c \
+	dcpi1_div_q.c \
+	mul_1.c \
+	sub_n.c \
+	toom_eval_pm2.c \
+	add_n.c \
+	subcnd_n.c \
+	hgcd2.c \
+	toom62_mul.c \
+	comb_tables.c \
+	sbpi1_bdiv_qr.c \
+	sub_err2_n.c \
+	scan1.c \
+	brootinv.c \
+	pre_divrem_1.c \
+	perfpow.c \
+	get_str.c \
+	mulmod_bnm1.c \
+	mullo_basecase.c \
+	tdiv_qr.c \
+	div_qr_2n_pi1.c \
+	toom43_mul.c \
+	mod_1_1.c \
+	matrix22_mul.c \
+	powm_sec.c \
+	divrem.c \
+	bsqrt.c \
+	gcd_1.c \
+	dcpi1_bdiv_qr.c \
+	mul_n.c \
+	redc_2.c \
+	submul_1.c \
+	toom6h_mul.c \
+	sqrmod_bnm1.c \
+	mul_fft.c \
+	mulmid.c \
+	powm.c \
+	rootrem.c \
+	mode1o.c \
+	toom_interpolate_8pts.c \
+	remove.c \
+	lshiftc.c \
+	dive_1.c \
+	cmp.c \
+	toom_eval_pm1.c \
+	hgcd_appr.c \
+	scan0.c \
+	gcd_subdiv_step.c \
+	sbpi1_div_qr.c \
+	invert.c \
+	sub.c \
+	toom_eval_pm2rexp.c \
+	broot.c \
+	dcpi1_bdiv_q.c \
+	hgcd2_jacobi.c \
+	add_err1_n.c \
+	mulmid_n.c \
+	redc_1.c \
+	sqr.c \
+	nussbaumer_mul.c \
+	mu_bdiv_qr.c \
+	pow_1.c \
+	get_d.c \
+	toom52_mul.c \
+	sbpi1_div_q.c \
+	diveby3.c \
+	fib2_ui.c \
+	bdiv_qr.c \
+	hgcd_jacobi.c \
+	toom3_sqr.c \
+	gcd.c \
+	redc_n.c \
+	sub_err1_n.c \
+
+C_SRCS_LIST= \
+	xor_n.c			mpn/generic/logops_n.c \
+	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
+	nand_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	hamdist.c		mpn/generic/popham.c \
+	popcount.c		mpn/generic/popham.c \
+	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
+	and_n.c			mpn/generic/logops_n.c \
+	ior_n.c			mpn/generic/logops_n.c \
+	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	xnor_n.c		mpn/generic/logops_n.c \
+	iorn_n.c		mpn/generic/logops_n.c \
+	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
+	andn_n.c		mpn/generic/logops_n.c \
+
+GMP_LIMB_BITS=32
Index: src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h:1.1
--- /dev/null	Wed Sep  3 19:11:24 2014
+++ src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h	Wed Sep  3 19:11:24 2014
@@ -0,0 +1,630 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it 

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/lib/libgmp/arch

2014-05-13 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue May 13 18:46:48 UTC 2014

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: Makefile.inc config.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: Makefile.inc config.h

Log Message:
on mips64* use generic C functions instead of assembly routines when building
n32 binaries. Should work around PR48696
ok mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h

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/lib/libgmp/arch/mips64eb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc:1.5	Wed Dec  4 00:49:18 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc	Tue May 13 18:46:48 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.5 2013/12/04 00:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.6 2014/05/13 18:46:48 macallan Exp $
 
 SRCS+= \
 	random.c \
@@ -174,6 +174,24 @@ C_SRCS_LIST= \
 	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
 	andn_n.c		mpn/generic/logops_n.c \
 
+.if (defined(CPUFLAGS)  !empty(CPUFLAGS:M-mabi=64))
+GMP_LIMB_BITS=64
+C_SRCS_LIST= \
+	xor_n.c			mpn/generic/logops_n.c \
+	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
+	nand_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	hamdist.c		mpn/generic/popham.c \
+	popcount.c		mpn/generic/popham.c \
+	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
+	and_n.c			mpn/generic/logops_n.c \
+	ior_n.c			mpn/generic/logops_n.c \
+	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	xnor_n.c		mpn/generic/logops_n.c \
+	iorn_n.c		mpn/generic/logops_n.c \
+	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
+	andn_n.c		mpn/generic/logops_n.c \
+
 ASM_SRCS_LIST= \
 	sqr_diagonal.asm	mpn/mips64/sqr_diagonal.asm \
 	add_n.asm		mpn/mips64/add_n.asm \
@@ -185,10 +203,35 @@ ASM_SRCS_LIST= \
 	addmul_1.asm		mpn/mips64/addmul_1.asm \
 	sub_n.asm		mpn/mips64/sub_n.asm \
 
-.if (defined(CPUFLAGS)  !empty(CPUFLAGS:M-mabi=64))
-GMP_LIMB_BITS=64
 .else
 GMP_LIMB_BITS=32
+C_SRCS_LIST= \
+	xor_n.c			mpn/generic/logops_n.c \
+	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
+	nand_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	hamdist.c		mpn/generic/popham.c \
+	popcount.c		mpn/generic/popham.c \
+	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
+	and_n.c			mpn/generic/logops_n.c \
+	ior_n.c			mpn/generic/logops_n.c \
+	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	xnor_n.c		mpn/generic/logops_n.c \
+	iorn_n.c		mpn/generic/logops_n.c \
+	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
+	andn_n.c		mpn/generic/logops_n.c \
+	addn_n.c		mpn/generic/add_n.c \
+	submul_1.c		mpn/generic/submul_1.c \
+	lshift.c		mpn/generic/lshift.c \
+	mul_1.c			mpn/generic/mul_1.c \
+	rshift.c		mpn/generic/rshift.c \
+	sub_n.c			mpn/generic/sub_n.c \
+	addmul_1.c		mpn/generic/addmul_1.c \
+
+ASM_SRCS_LIST= 
+
 .endif
 
 COPTS+=		-Wno-error
+
+COPTS+=		-Wno-error

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h:1.4	Fri Nov 29 13:26:16 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h	Tue May 13 18:46:48 2014
@@ -221,9 +221,13 @@ along with the GNU MP Library.  If not, 
 
 /* Define to 1 each of the following for which a native (ie. CPU specific)
 implementation of the corresponding routine exists.  */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_add_n 1
+#endif
 /* #undef HAVE_NATIVE_mpn_add_n_sub_n */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_add_nc 1
+#endif
 /* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
 /* #undef HAVE_NATIVE_mpn_addcnd_n */
 /* #undef HAVE_NATIVE_mpn_addlsh1_n */
@@ -272,7 +276,9 @@ along with the GNU MP Library.  If not, 
 /* #undef HAVE_NATIVE_mpn_invert_limb */
 /* #undef HAVE_NATIVE_mpn_ior_n */
 /* #undef HAVE_NATIVE_mpn_iorn_n */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_lshift 1
+#endif
 /* #undef HAVE_NATIVE_mpn_lshiftc */
 /* #undef HAVE_NATIVE_mpn_lshsub_n */
 /* #undef HAVE_NATIVE_mpn_mod_1 */
@@ -283,7 +289,9 @@ along with the GNU MP Library.  If not, 
 /* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
 /* #undef HAVE_NATIVE_mpn_modexact_1_odd */
 /* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_mul_1 1
+#endif
 /* #undef HAVE_NATIVE_mpn_mul_1c */
 /* #undef 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2014-02-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 26 15:35:05 UTC 2014

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: Makefile.inc

Log Message:
powerpc64 support.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc

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/lib/libgmp/arch/powerpc64/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc:1.3	Tue Dec  3 19:49:18 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc	Wed Feb 26 10:35:05 2014
@@ -1,131 +1,134 @@
-#	$NetBSD: Makefile.inc,v 1.3 2013/12/04 00:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.4 2014/02/26 15:35:05 christos Exp $
 
 SRCS+= \
-	random.c \
-	divrem_2.c \
-	toom_interpolate_7pts.c \
-	sbpi1_divappr_q.c \
-	random2.c \
-	mu_bdiv_q.c \
-	toom32_mul.c \
-	toom44_mul.c \
-	toom8h_mul.c \
-	toom2_sqr.c \
-	zero.c \
-	mod_1_4.c \
-	gcdext.c \
-	binvert.c \
-	mu_div_q.c \
-	invertappr.c \
-	dump.c \
-	mu_divappr_q.c \
-	dcpi1_div_qr.c \
-	redc_1_sec.c \
-	toom6_sqr.c \
-	divrem_1.c \
-	mod_1.c \
-	divexact.c \
-	powlo.c \
-	mul.c \
-	set_str.c \
-	toom42_mul.c \
-	toom_interpolate_6pts.c \
-	dcpi1_divappr_q.c \
-	toom_eval_dgr3_pm2.c \
-	mod_1_3.c \
-	toom_couple_handling.c \
 	add.c \
-	toom_interpolate_12pts.c \
-	perfsqr.c \
-	toom53_mul.c \
-	toom_eval_pm2exp.c \
-	mu_div_qr.c \
-	toom_interpolate_16pts.c \
-	mod_34lsub1.c \
-	bdiv_q.c \
-	toom22_mul.c \
-	toom4_sqr.c \
-	div_q.c \
-	jacbase.c \
-	gcdext_subdiv_step.c \
-	mullo_n.c \
-	toom33_mul.c \
-	toom_eval_dgr3_pm1.c \
-	mod_1_2.c \
-	sub_1.c \
-	trialdiv.c \
 	add_1.c \
-	sqr_basecase.c \
-	toom_interpolate_5pts.c \
-	sbpi1_bdiv_q.c \
-	pre_mod_1.c \
-	hgcd.c \
 	bdiv_dbm1c.c \
-	sqrtrem.c \
+	bdiv_q.c \
 	bdiv_q_1.c \
+	bdiv_qr.c \
+	binvert.c \
+	cmp.c \
+	dcpi1_bdiv_q.c \
+	dcpi1_bdiv_qr.c \
+	dcpi1_div_q.c \
+	dcpi1_div_qr.c \
+	dcpi1_divappr_q.c \
+	div_q.c \
+	div_qr_2n_pi1.c \
+	dive_1.c \
+	diveby3.c \
+	divexact.c \
+	divis.c \
+	divrem.c \
+	divrem_1.c \
+	divrem_2.c \
+	dump.c \
+	fib2_ui.c \
+	gcd.c \
+	gcd_1.c \
+	gcd_subdiv_step.c \
+	gcdext.c \
 	gcdext_1.c \
-	toom63_mul.c \
-	mul_basecase.c \
-	toom8_sqr.c \
-	neg.c \
 	gcdext_lehmer.c \
-	divis.c \
-	dcpi1_div_q.c \
-	subcnd_n.c \
-	toom_eval_pm2.c \
-	hgcd2.c \
-	toom62_mul.c \
-	sbpi1_bdiv_qr.c \
-	scan1.c \
-	pre_divrem_1.c \
-	perfpow.c \
+	get_d.c \
 	get_str.c \
+	hgcd.c \
+	hgcd2.c \
+	hgcd_appr.c \
+	hgcd_matrix.c \
+	hgcd_reduce.c \
+	hgcd_step.c \
+	invert.c \
+	invertappr.c \
+	jacbase.c \
+	lshiftc.c \
+	matrix22_mul.c \
+	matrix22_mul1_inverse_vector.c \
+	mod_1.c \
+	mod_1_1.c \
+	mod_1_2.c \
+	mod_1_3.c \
+	mod_1_4.c \
+	mod_34lsub1.c \
+	mode1o.c \
+	mu_bdiv_q.c \
+	mu_bdiv_qr.c \
+	mu_div_q.c \
+	mu_div_qr.c \
+	mu_divappr_q.c \
+	mul.c \
+	mul_basecase.c \
+	mul_fft.c \
+	mul_n.c \
 	mullo_basecase.c \
+	mullo_n.c \
 	mulmod_bnm1.c \
-	tdiv_qr.c \
-	toom43_mul.c \
-	mod_1_1.c \
-	matrix22_mul.c \
+	neg.c \
+	nussbaumer_mul.c \
+	perfpow.c \
+	perfsqr.c \
+	pow_1.c \
+	powlo.c \
+	powm.c \
 	powm_sec.c \
-	divrem.c \
-	gcd_1.c \
-	dcpi1_bdiv_qr.c \
-	mul_n.c \
+	pre_divrem_1.c \
+	pre_mod_1.c \
+	random.c \
+	random2.c \
+	redc_1.c \
 	redc_2.c \
-	toom6h_mul.c \
-	mul_fft.c \
-	sqrmod_bnm1.c \
-	powm.c \
-	rootrem.c \
-	mode1o.c \
-	toom_interpolate_8pts.c \
+	redc_n.c \
 	remove.c \
-	lshiftc.c \
-	dive_1.c \
-	cmp.c \
-	toom_eval_pm1.c \
-	scan0.c \
-	gcd_subdiv_step.c \
+	rootrem.c \
+	sbpi1_bdiv_q.c \
+	sbpi1_bdiv_qr.c \
+	sbpi1_div_q.c \
 	sbpi1_div_qr.c \
-	invert.c \
-	sub.c \
-	toom_eval_pm2rexp.c \
-	dcpi1_bdiv_q.c \
-	redc_1.c \
+	sbpi1_divappr_q.c \
+	scan0.c \
+	scan1.c \
+	set_str.c \
 	sqr.c \
-	nussbaumer_mul.c \
-	mu_bdiv_qr.c \
-	pow_1.c \
-	gcd_lehmer.c \
-	get_d.c \
-	toom52_mul.c \
-	sbpi1_div_q.c \
-	diveby3.c \
-	fib2_ui.c \
-	bdiv_qr.c \
+	sqr_basecase.c \
+	sqrmod_bnm1.c \
+	sqrtrem.c \
+	sub.c \
+	sub_1.c \
+	subcnd_n.c \
+	tdiv_qr.c \
+	toom22_mul.c \
+	toom2_sqr.c \
+	toom32_mul.c \
+	toom33_mul.c \
 	toom3_sqr.c \
-	gcd.c \
-	redc_n.c \
+	toom42_mul.c \
+	toom43_mul.c \
+	toom44_mul.c \
+	toom4_sqr.c \
+	toom52_mul.c \
+	toom53_mul.c \
+	toom62_mul.c \
+	toom63_mul.c \
+	toom6_sqr.c \
+	toom6h_mul.c \
+	toom8_sqr.c \
+	toom8h_mul.c \
+	toom_couple_handling.c \
+	toom_eval_dgr3_pm1.c \
+	toom_eval_dgr3_pm2.c \
+	toom_eval_pm1.c \
+	toom_eval_pm2.c \
+	toom_eval_pm2exp.c \
+	toom_eval_pm2rexp.c \
+	toom_interpolate_12pts.c \
+	toom_interpolate_16pts.c \
+	toom_interpolate_5pts.c \
+	toom_interpolate_6pts.c \
+	toom_interpolate_7pts.c \
+	toom_interpolate_8pts.c \
+	trialdiv.c \
+	zero.c \
 
 C_SRCS_LIST= \
 	hamdist.c		mpn/generic/popham.c \
@@ -133,7 +136,7 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/earm

2014-01-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 15 22:23:14 UTC 2014

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc

Log Message:
-march=armv6 is no longer needed here, the multiplication instructions
are now parsed correctly for all ARM variants in LLVM.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc

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/lib/libgmp/arch/earm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.6 src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.7
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.6	Wed Dec 25 22:54:24 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc	Wed Jan 15 22:23:14 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.6 2013/12/25 22:54:24 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.7 2014/01/15 22:23:14 joerg Exp $
 
 SRCS+= \
 	random.c \
@@ -193,9 +193,3 @@ GMP_LIMB_BITS=32
 
 M4FLAGS= -DPIC
 COPTS+= -fPIC
-
-AFLAGS.addmul_1.s=	-march=armv6
-AFLAGS.invert_limb.s=	-march=armv6
-AFLAGS.mode1o.s=	-march=armv6
-AFLAGS.mul_1.s=		-march=armv6
-AFLAGS.submul_1.s=	-march=armv6



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/earm

2013-12-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Dec 25 22:06:11 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc

Log Message:
Tag files using more advanced instructions than ARMv4 ISA with the
necessary support.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc

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/lib/libgmp/arch/earm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.4	Wed Dec  4 00:49:17 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc	Wed Dec 25 22:06:11 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.4 2013/12/04 00:49:17 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2013/12/25 22:06:11 joerg Exp $
 
 SRCS+= \
 	random.c \
@@ -193,3 +193,9 @@ GMP_LIMB_BITS=32
 
 M4FLAGS= -DPIC
 COPTS+= -fPIC
+
+AFLAGS.addmul_1.s=	-march=armv5
+AFLAGS.invert_limb.s=	-march=armv5
+AFLAGS.mode1o.s=	-march=armv5
+AFLAGS.mul_1.s=		-march=armv5
+AFLAGS.submul_1.s=	-march=armv5



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/earm

2013-12-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Dec 25 22:54:24 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc

Log Message:
Should be ARMv6.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc

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/lib/libgmp/arch/earm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.5	Wed Dec 25 22:06:11 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc	Wed Dec 25 22:54:24 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.5 2013/12/25 22:06:11 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.6 2013/12/25 22:54:24 joerg Exp $
 
 SRCS+= \
 	random.c \
@@ -194,8 +194,8 @@ GMP_LIMB_BITS=32
 M4FLAGS= -DPIC
 COPTS+= -fPIC
 
-AFLAGS.addmul_1.s=	-march=armv5
-AFLAGS.invert_limb.s=	-march=armv5
-AFLAGS.mode1o.s=	-march=armv5
-AFLAGS.mul_1.s=		-march=armv5
-AFLAGS.submul_1.s=	-march=armv5
+AFLAGS.addmul_1.s=	-march=armv6
+AFLAGS.invert_limb.s=	-march=armv6
+AFLAGS.mode1o.s=	-march=armv6
+AFLAGS.mul_1.s=		-march=armv6
+AFLAGS.submul_1.s=	-march=armv6



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2013-12-18 Thread Greg Troxel
Module Name:src
Committed By:   gdt
Date:   Thu Dec 19 01:07:03 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
When copying an .OBJDIR file, rm -f first.

Arguably there should be some general mechanism, but there isn't yet,
and I hit a build failure at

cp ${.CURDIR}/arch/${GMP_MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4

because my source tree is mode 444, and hence my previously-copied
config.m4 was too.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.23 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.24
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.23	Wed Dec  4 00:57:21 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Thu Dec 19 01:07:03 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.23 2013/12/04 00:57:21 mrg Exp $
+#	$NetBSD: Makefile,v 1.24 2013/12/19 01:07:03 gdt Exp $
 
 .include bsd.init.mk
 
@@ -212,7 +212,7 @@ CLEANFILES+=	${DPSRCS} gen-fac gen-fib g
 dummy:
 	mkdir dummy
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${GMP_MACHINE_ARCH}/config.m4
-	cp ${.CURDIR}/arch/${GMP_MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4
+	rm -f ${.OBJDIR}/config.m4  cp ${.CURDIR}/arch/${GMP_MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4
 
 CLEANFILES+=	config.m4
 clean: cleandummy



CVS commit: src/external/lgpl3/gmp

2013-12-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Dec  4 11:43:53 UTC 2013

Modified Files:
src/external/lgpl3/gmp: README

Log Message:
add a couple of more things to worry about.


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

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/README
diff -u src/external/lgpl3/gmp/README:1.5 src/external/lgpl3/gmp/README:1.6
--- src/external/lgpl3/gmp/README:1.5	Wed Dec  4 01:03:15 2013
+++ src/external/lgpl3/gmp/README	Wed Dec  4 11:43:52 2013
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.5 2013/12/04 01:03:15 mrg Exp $
+$NetBSD: README,v 1.6 2013/12/04 11:43:52 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC = 4.2.
 
@@ -26,7 +26,10 @@ There are a few steps to this:
 
 	  some of these files might have src/obj references.  in particular
 	  fix GMP_MPARAM_H_SUGGEST to start from ./mpn/... and make sure
-	  we #define __GMP_CC to gcc -std=gnu99.  XXX  make this automatic
+	  we #define __GMP_CC to gcc -std=gnu99, and make sure that
+	  CONFIG_TOP_SRCDIR is not defined in config.m4
+
+	  XXX  make this automatic
 
 
 	- parse the ./configure output and note all created symlinks



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb

2013-12-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Dec  3 08:49:09 UTC 2013

Removed Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: a

Log Message:
remove accidently commited file


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/a

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



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2013-12-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Dec  4 00:49:19 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/ia64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc

Log Message:
consolidate the trialdivtab.h generation code.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/lgpl3/gmp/lib/libgmp/Makefile
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/Makefile.inc
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/ia64/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/Makefile.inc

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.21 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.22
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.21	Sun Dec  1 09:29:37 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Wed Dec  4 00:49:17 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2013/12/01 09:29:37 martin Exp $
+#	$NetBSD: Makefile,v 1.22 2013/12/04 00:49:17 mrg Exp $
 
 .include bsd.init.mk
 
@@ -147,11 +147,13 @@ CLEANFILES+=	${_dir}_${_srcfile}
 
 .endfor
 
-CPPFLAGS+=	-I. -I${DIST} -I${.CURDIR}/arch/${GMP_MACHINE_ARCH} 

CVS commit: src/external/lgpl3/gmp/lib/libgmp

2013-12-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Dec  4 00:57:21 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
make trialdivtab.h depend on the Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.22 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.23
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.22	Wed Dec  4 00:49:17 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Wed Dec  4 00:57:21 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2013/12/04 00:49:17 mrg Exp $
+#	$NetBSD: Makefile,v 1.23 2013/12/04 00:57:21 mrg Exp $
 
 .include bsd.init.mk
 
@@ -193,7 +193,7 @@ gen-trialdivtab: gen-trialdivtab.c
 	${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
 
 trialdiv.c: trialdivtab.h
-trialdivtab.h: gen-trialdivtab
+trialdivtab.h: gen-trialdivtab Makefile
 	${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000  ${.OBJDIR}/trialdivtab.h
 
 CLEANFILES+=	${DPSRCS} gen-fac gen-fib gen-bases gen-jacobitab \



CVS commit: src/external/lgpl3/gmp

2013-12-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Dec  4 01:03:15 UTC 2013

Modified Files:
src/external/lgpl3/gmp: README
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: gmp-mparam.h gmp.h

Log Message:
repply the hacks from rev 1.2 to the gmp*.h files, and
make a note about it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/README
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp-mparam.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h

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/README
diff -u src/external/lgpl3/gmp/README:1.4 src/external/lgpl3/gmp/README:1.5
--- src/external/lgpl3/gmp/README:1.4	Mon Jul 15 08:59:47 2013
+++ src/external/lgpl3/gmp/README	Wed Dec  4 01:03:15 2013
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.4 2013/07/15 08:59:47 mrg Exp $
+$NetBSD: README,v 1.5 2013/12/04 01:03:15 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC = 4.2.
 
@@ -44,6 +44,11 @@ There are a few steps to this:
 The amd64 port is a good reference to compare.  The trialdivtab.h
 generation may need to be moved the into libgmp/Makefile itself.
 
+This mips64* ports need some minor hacks to the generated gmp*.h
+files to fix their library builds for compat issues.  See these
+files in:
+	http://mail-index.netbsd.org/source-changes/2011/07/10/msg024467.html
+
 
 This is still a work in progress and methods used to build may be
 changed at any time.

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h:1.3	Fri Nov 29 08:03:42 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h	Wed Dec  4 01:03:15 2013
@@ -19,8 +19,13 @@ You should have received a copy of the G
 with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 
 
+#ifdef _ABI64
 #define GMP_LIMB_BITS 64
 #define BYTES_PER_MP_LIMB 8
+#else
+#define GMP_LIMB_BITS 32
+#define BYTES_PER_MP_LIMB 4
+#endif
 
 
 /* Generated by tuneup.c, 2004-02-10, gcc 3.2  MIPSpro C 7.2.1 (R1x000) */

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h:1.4	Fri Nov 29 08:03:42 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h	Wed Dec  4 01:03:15 2013
@@ -31,7 +31,11 @@ along with the GNU MP Library.  If not, 
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #define __GMP_HAVE_HOST_CPU_FAMILY_power   0
 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#ifdef _ABI64
 #define GMP_LIMB_BITS  64
+#else
+#define GMP_LIMB_BITS  32
+#endif
 #define GMP_NAIL_BITS  0
 #endif
 #define GMP_NUMB_BITS (GMP_LIMB_BITS - GMP_NAIL_BITS)
@@ -56,7 +60,9 @@ along with the GNU MP Library.  If not, 
 
 /* Instantiated by configure. */
 #if ! defined (__GMP_WITHIN_CONFIGURE)
+#ifdef _LP64
 #define _LONG_LONG_LIMB 1
+#endif
 #define __GMP_LIBGMP_DLL  0
 #endif
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp-mparam.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp-mparam.h:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp-mparam.h:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp-mparam.h:1.3	Fri Nov 29 08:10:04 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp-mparam.h	Wed Dec  4 01:03:15 2013
@@ -19,8 +19,13 @@ You should have received a copy of the G
 with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 
 
+#ifdef _ABI64
 #define GMP_LIMB_BITS 64
 #define BYTES_PER_MP_LIMB 8
+#else
+#define GMP_LIMB_BITS 32
+#define BYTES_PER_MP_LIMB 4
+#endif
 
 
 /* Generated by tuneup.c, 2004-02-10, gcc 3.2  MIPSpro C 7.2.1 (R1x000) */

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h:1.5	Fri Nov 29 13:26:16 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h	Wed Dec  4 01:03:15 2013
@@ -31,7 +31,11 @@ along with the GNU MP Library.  If not, 
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #define __GMP_HAVE_HOST_CPU_FAMILY_power   0
 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#ifdef _ABI64
 #define GMP_LIMB_BITS  64
+#else
+#define 

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/lib/libgmp

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

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Enable warnings on sparc64 again


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.20 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.21
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.20	Sat Nov 30 23:45:05 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Sun Dec  1 09:29:37 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2013/11/30 23:45:05 wiz Exp $
+#	$NetBSD: Makefile,v 1.21 2013/12/01 09:29:37 martin Exp $
 
 .include bsd.init.mk
 
@@ -240,8 +240,5 @@ COPTS += -Wno-stack-protector
 .if !empty(GMP_MACHINE_ARCH:M*arm*)
 COPTS += -marm
 .endif
-.if ${GMP_MACHINE_ARCH} == sparc64
-NOGCCERROR=yes
-.endif
 
 CWARNFLAGS.clang+=	-Wno-unused-value -Wno-tautological-compare -Wno-parentheses



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/lib/libgmp

2013-11-30 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Nov 30 23:45:05 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Disable parentheses checks since libgmp doesn't pass them.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.19 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.20
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.19	Fri Nov 29 14:51:36 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Sat Nov 30 23:45:05 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2013/11/29 14:51:36 martin Exp $
+#	$NetBSD: Makefile,v 1.20 2013/11/30 23:45:05 wiz Exp $
 
 .include bsd.init.mk
 
@@ -244,4 +244,4 @@ COPTS += -marm
 NOGCCERROR=yes
 .endif
 
-CWARNFLAGS.clang+=	-Wno-unused-value -Wno-tautological-compare
+CWARNFLAGS.clang+=	-Wno-unused-value -Wno-tautological-compare -Wno-parentheses



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/lib/libgmp

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

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: Makefile.inc config.h
config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/ia64: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: Makefile.inc config.h
config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: Makefile.inc config.h
config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: Makefile.inc config.h
config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc config.h
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: Makefile.inc config.h
gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc config.h
config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h
Removed Files:
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/arm: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/i386: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/vax: mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: mp.h

Log Message:
updates for GMP 5.1.3, and new build files for most platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/lgpl3/gmp/lib/libgmp/Makefile
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/alpha/mp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/arm/mp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/coldfire/gmp.h
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/coldfire/mp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc
cvs rdiff -u 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2013-11-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 29 13:26:16 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earm: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf: config.h config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb: config.h config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.h config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.h config.m4
gmp.h

Log Message:
clean up __GMP_CC, GMP_MPARAM_H_SUGGEST and CONFIG_TOP_SRCDIR.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf/config.m4
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.m4
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.m4
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h

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/lib/libgmp/arch/armeb/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h:1.3	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h	Fri Nov 29 13:26:16 2013
@@ -27,7 +27,7 @@ along with the GNU MP Library.  If not, 
 
 /* The gmp-mparam.h file (a string) the tune program should suggest updating.
*/
-#define GMP_MPARAM_H_SUGGEST /usr/src7/external/lgpl3/gmp/dist/mpn/arm/gmp-mparam.h
+#define GMP_MPARAM_H_SUGGEST ./mpn/arm/gmp-mparam.h
 
 /* Define to 1 if you have the `alarm' function. */
 #define HAVE_ALARM 1

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4:1.2	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4	Fri Nov 29 13:26:16 2013
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src7/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)
Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h:1.2	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h	Fri Nov 29 13:26:16 2013
@@ -2218,7 +2218,7 @@ enum
 };
 
 /* Define CC and CFLAGS which were used to build this version of GMP */
-#define __GMP_CC /var/obj/evbarm/usr/src6/tooldir.NetBSD-6.0_STABLE-amd64/bin/armeb--netbsdelf-gcc --sysroot=/var/obj/evbarm/usr/src6/destdir.evbarm -L/var/obj/evbarm/usr/src6/destdir.evbarm/lib -L/var/obj/evbarm/usr/src6/destdir.evbarm/usr/lib -B/var/obj/evbarm/usr/src6/destdir.evbarm/usr/lib/ -I/var/obj/evbarm/usr/src7/external/lgpl3/gmp/.native/gcc/include -std=gnu99
+#define __GMP_CC gcc -std=gnu99
 #define __GMP_CFLAGS -marm -O2 -pedantic -fomit-frame-pointer
 
 /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */

Index: src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h:1.2	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h	Fri Nov 29 13:26:16 2013
@@ -27,7 +27,7 @@ along with the GNU MP Library.  If not, 
 
 /* The gmp-mparam.h file (a 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/sh3el

2013-11-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 29 13:48:15 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: gmp.h

Log Message:
fix definition of __GMP_CC.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h

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/lib/libgmp/arch/sh3el/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h:1.3	Fri Nov 29 08:03:42 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h	Fri Nov 29 13:48:15 2013
@@ -2218,7 +2218,7 @@ enum
 };
 
 /* Define CC and CFLAGS which were used to build this version of GMP */
-#define gcc -std=gnu99
+#define __GMP_CC gcc -std=gnu99
 #define __GMP_CFLAGS -O2 -pedantic
 
 /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2013-11-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Nov 29 14:51:36 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Make warnings non-fatal on sparc64.
Warings reported upstream.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.18 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.19
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.18	Fri Nov 29 08:03:41 2013
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Fri Nov 29 14:51:36 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.18 2013/11/29 08:03:41 mrg Exp $
+#	$NetBSD: Makefile,v 1.19 2013/11/29 14:51:36 martin Exp $
 
 .include bsd.init.mk
 
@@ -240,5 +240,8 @@ COPTS += -Wno-stack-protector
 .if !empty(GMP_MACHINE_ARCH:M*arm*)
 COPTS += -marm
 .endif
+.if ${GMP_MACHINE_ARCH} == sparc64
+NOGCCERROR=yes
+.endif
 
 CWARNFLAGS.clang+=	-Wno-unused-value -Wno-tautological-compare



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/lib/libgmp

2013-08-04 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sun Aug  4 23:37:54 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
If MACHINE_ARCH contains armv[467], use arm instead.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.14 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.15
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.14	Mon Nov 26 18:57:33 2012
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Sun Aug  4 23:37:54 2013
@@ -1,10 +1,12 @@
-#	$NetBSD: Makefile,v 1.14 2012/11/26 18:57:33 drochner Exp $
+#	$NetBSD: Makefile,v 1.15 2013/08/04 23:37:54 matt Exp $
 
 .include bsd.init.mk
 
 # We don't install gmp, just provide it for GCC.
 LIBISPRIVATE?=	yes
 
+LIBGMP_MACHINE_ARCH?=	${MACHINE_ARCH:C/armv[467]/arm/}
+
 .if ${LIBISPRIVATE} != yes
 INCS= gmp.h
 INCSDIR=  /usr/include
@@ -145,7 +147,7 @@ CLEANFILES+=	${_dir}_${_srcfile}
 
 .endfor
 
-CPPFLAGS+=	-I. -I${DIST} -I${.CURDIR}/arch/${MACHINE_ARCH} -D__GMP_WITHIN_GMP -DHAVE_CONFIG_H
+CPPFLAGS+=	-I. -I${DIST} -I${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH} -D__GMP_WITHIN_GMP -DHAVE_CONFIG_H
 
 WITHOUT_MAN=	yes
 
@@ -179,13 +181,14 @@ perfsqr.h: gen-psqr.c
 
 CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr gen-trialdivtab
 
-.include ${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc
+
+.include ${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH}/Makefile.inc
 
 # XXX stuff looks for ../config.m4
 dummy:
 	mkdir dummy
-${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
-	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4
+${.OBJDIR}/config.m4: ${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH}/config.m4
+	cp ${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4
 
 CLEANFILES+=	config.m4
 clean: cleandummy
@@ -218,7 +221,7 @@ CLEANFILES+=	mpn_${_build}   
 
 .PATH:	${DIST} \
 	${DIST}/mpn/generic \
-	${.CURDIR}/arch/${MACHINE_ARCH} \
+	${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH} \
 	${DIST}/mpf \
 	${DIST}/mpz
 



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

2013-07-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jul 18 22:40:58 UTC 2013

Modified Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp

Log Message:
default to MACHINE_GNU_PLATFORM so that when run with nbmake-foo the right
thing happens


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

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/Makefile.netbsd-gmp
diff -u src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.2 src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.3
--- src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.2	Tue Feb  5 02:54:01 2013
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Thu Jul 18 22:40:58 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.netbsd-gmp,v 1.2 2013/02/05 02:54:01 matt Exp $
+# $NetBSD: Makefile.netbsd-gmp,v 1.3 2013/07/18 22:40:58 matt Exp $
 
 # hack makefile to help build gmp ./configure
 
@@ -6,7 +6,7 @@
 
 CCADDFLAGS=	--sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
 
-TARGET?=hppa-netbsd
+TARGET?=${MACHINE_GNU_PLATFORM}
 #TARGET=mips64el-netbsd
 ENV_ARGS=\
 			CC=${CC:Q}' '${CCADDFLAGS:Q} \



CVS commit: src/external/lgpl3/gmp

2013-07-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 15 08:59:47 UTC 2013

Modified Files:
src/external/lgpl3/gmp: README

Log Message:
note that Makefile.netbsd-gmp can help with the running of configure.


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

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/README
diff -u src/external/lgpl3/gmp/README:1.3 src/external/lgpl3/gmp/README:1.4
--- src/external/lgpl3/gmp/README:1.3	Tue Mar 20 08:21:38 2012
+++ src/external/lgpl3/gmp/README	Mon Jul 15 08:59:47 2013
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.3 2012/03/20 08:21:38 mrg Exp $
+$NetBSD: README,v 1.4 2013/07/15 08:59:47 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC = 4.2.
 
@@ -12,7 +12,9 @@ final product.  All of these issues need
 
 There are a few steps to this:
 
-	- run ./configure, save the output
+	- run ./configure, save the output.  you can use the makefile
+	  Makefile.netbsd-gmp in this directory to run this with the
+	  right options, etc.  run it with nbmake-$MACHINE.
 
 	- create src/external/gpl3/gmp/lib/libgmp/arch/${MACHINE_ARCH} dir,
 	  and copy these files into it:



CVS commit: src/external/lgpl3/gmp

2013-02-04 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Feb  5 02:54:02 UTC 2013

Modified Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp

Log Message:
Use NETBSDSRCDIR.  Use ?= when setting target so you can override from cmdline.


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

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/Makefile.netbsd-gmp
diff -u src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.1 src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.2
--- src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.1	Sun Oct 30 01:50:32 2011
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Tue Feb  5 02:54:01 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.netbsd-gmp,v 1.1 2011/10/30 01:50:32 mrg Exp $
+# $NetBSD: Makefile.netbsd-gmp,v 1.2 2013/02/05 02:54:01 matt Exp $
 
 # hack makefile to help build gmp ./configure
 
@@ -6,7 +6,7 @@
 
 CCADDFLAGS=	--sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
 
-TARGET=hppa-netbsd
+TARGET?=hppa-netbsd
 #TARGET=mips64el-netbsd
 ENV_ARGS=\
 			CC=${CC:Q}' '${CCADDFLAGS:Q} \
@@ -16,4 +16,4 @@ ENV_ARGS=\
 			LIBS=-lintl
 
 all:
-	env ${ENV_ARGS} /usr/src3/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}
+	env ${ENV_ARGS} ${NETBSDSRCDIR}/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}



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/lib/libgmp

2012-11-26 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon Nov 26 18:57:36 UTC 2012

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc

Log Message:
collect common rules in the shared Makefile, this propagates the .OBJDIR
fix done for i386 last year to all other ports


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/lgpl3/gmp/lib/libgmp/Makefile
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/Makefile.inc

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.13 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.14
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.13	Fri Aug 10 16:05:26 2012
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Mon Nov 26 18:57:33 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2012/08/10 16:05:26 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2012/11/26 18:57:33 drochner Exp $
 
 .include bsd.init.mk
 
@@ -181,6 +181,39 @@ CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fi
 
 .include ${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc
 
+# XXX stuff looks for ../config.m4
+dummy:
+	mkdir dummy
+${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
+	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4
+
+CLEANFILES+=	config.m4
+clean: cleandummy
+cleandummy: .PHONY
+	-rmdir dummy
+
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+.for _build _src in ${ASM_SRCS_LIST}
+${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
+.endfor
+
+.for _build _src in ${C_SRCS_LIST}
+mpn_${_build}: Makefile
+	echo '#include 

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

2012-03-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 20 08:21:40 UTC 2012

Modified Files:
src/external/lgpl3/gmp: README
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/arm: config.h
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.h config.m4
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: config.h

Log Message:
remove references to my src/obj trees, and make a note about avoiding
this in the future / should automate it too.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/README
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/gmp.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/config.h

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/README
diff -u src/external/lgpl3/gmp/README:1.2 src/external/lgpl3/gmp/README:1.3
--- src/external/lgpl3/gmp/README:1.2	Wed Jun 29 01:38:27 2011
+++ src/external/lgpl3/gmp/README	Tue Mar 20 08:21:38 2012
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.2 2011/06/29 01:38:27 simonb Exp $
+$NetBSD: README,v 1.3 2012/03/20 08:21:38 mrg Exp $
 
 GMP in NetBSD.  We need GMP for GCC = 4.2.
 
@@ -22,6 +22,11 @@ There are a few steps to this:
 		gmp.h
 		mp.h
 
+	  some of these files might have src/obj references.  in particular
+	  fix GMP_MPARAM_H_SUGGEST to start from ./mpn/... and make sure
+	  we #define __GMP_CC to gcc -std=gnu99.  XXX  make this automatic
+
+
 	- parse the ./configure output and note all created symlinks
 	  for mpn.  these need to be converted into a new Makefile.inc.
 	  there is a script in this subdir build-gmp-Makefile.inc.awk

Index: src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h:1.1	Thu Jul  7 02:06:32 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h	Tue Mar 20 08:21:38 2012
@@ -27,7 +27,7 @@ along with the GNU MP Library.  If not, 
 
 /* The gmp-mparam.h file (a string) the tune program should suggest updating.
*/
-#define GMP_MPARAM_H_SUGGEST /usr/src3/external/lgpl3/gmp/dist/mpn/alpha/gmp-mparam.h
+#define GMP_MPARAM_H_SUGGEST ./mpn/alpha/gmp-mparam.h
 
 /* Define to 1 if you have the `alarm' 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:42:09 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.m4

Log Message:
make sure to use powerpc64/elf.m4, not powerpc32/elf.m4 here!


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.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/lib/libgmp/arch/powerpc64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.1	Sat Oct 29 09:16:54 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4	Sat Oct 29 11:42:09 2011
@@ -28,7 +28,7 @@ changequote(`,')
 ifdef(`__CONFIG_M4_INCLUDED__',,`
 include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
 include_mpn(`powerpc32/powerpc-defs.m4')
-include_mpn(`powerpc32/elf.m4')
+include_mpn(`powerpc64/elf.m4')
 define_not_for_expansion(`HAVE_HOST_CPU_powerpc64')
 define_not_for_expansion(`HAVE_ABI_mode32')
 define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')



CVS commit: src/external/lgpl3/gmp

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 01:50:39 UTC 2011

Added Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp

Log Message:
makefile frontend to run gmp configure under nbmake-$MACHINE.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/lgpl3/gmp/Makefile.netbsd-gmp

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

Added files:

Index: src/external/lgpl3/gmp/Makefile.netbsd-gmp
diff -u /dev/null src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.1
--- /dev/null	Sun Oct 30 01:50:39 2011
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Sun Oct 30 01:50:32 2011
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile.netbsd-gmp,v 1.1 2011/10/30 01:50:32 mrg Exp $
+
+# hack makefile to help build gmp ./configure
+
+.include bsd.own.mk
+
+CCADDFLAGS=	--sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
+
+TARGET=hppa-netbsd
+#TARGET=mips64el-netbsd
+ENV_ARGS=\
+			CC=${CC:Q}' '${CCADDFLAGS:Q} \
+			CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \
+			AS=${AS:Q} AWK=${TOOL_AWK:Q} LD=${LD:Q} \
+			NM=${NM:Q} OBJDUMP=${OBJDUMP:Q} \
+			LIBS=-lintl
+
+all:
+	env ${ENV_ARGS} /usr/src3/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}



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/lib/libgmp

2011-08-09 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug  9 13:01:34 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Requires -Wno-unused-value -Wno-tautological-compare when building with
clang.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.10 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.11
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.10	Thu Jul 21 03:13:30 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Tue Aug  9 13:01:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2011/07/21 03:13:30 mrg Exp $
+#	$NetBSD: Makefile,v 1.11 2011/08/09 13:01:34 joerg Exp $
 
 .include bsd.init.mk
 
@@ -189,3 +189,5 @@
 .if defined(HAVE_GCC) || defined(HAVE_PCC)
 COPTS += -Wno-stack-protector
 .endif
+
+CWARNFLAGS.clang+=	-Wno-unused-value -Wno-tautological-compare



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2011-07-18 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Mon Jul 18 16:55:49 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
Disable SSP warnings (not SSP itself) for this library as their are too
many source files with functions that use variable sized arrays.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.8 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.9
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.8	Mon Jul  4 12:00:15 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Mon Jul 18 16:55:49 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2011/07/04 12:00:15 mrg Exp $
+#	$NetBSD: Makefile,v 1.9 2011/07/18 16:55:49 tron Exp $
 
 .include bsd.init.mk
 
@@ -121,7 +121,6 @@
 # these are generated
 SRCS+=	fib_table.c mp_bases.c
 
-
 # Build the files that may have multiple identical base names under
 # different names.
 .for _dir _srcfile in \
@@ -189,3 +188,9 @@
 	${.CURDIR}/arch/${LIBGMP_MACHINE_ARCH} \
 	${DIST}/mpf \
 	${DIST}/mpz
+
+# Don't warn about functions which cannot be stack smash protected as
+# there are a lot of them.
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
+COPTS += -Wno-stack-protector
+.endif



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul 10 02:41:50 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc

Log Message:
make these look more like the sparc/powerpc ones.

XXX: a big chunk of these Makefile.inc's should promoted to the
XXX: main Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc

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/lib/libgmp/arch/arm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc	Sun Jul 10 02:41:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -170,9 +170,15 @@
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
 	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
 
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
+COPTS+= -fPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
-	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s
 CLEANFILES+=	${_build:R}.s

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc	Sun Jul 10 02:41:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -170,9 +170,15 @@
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
 	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
 
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
+COPTS+= -fPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
-	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s
 CLEANFILES+=	${_build:R}.s



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/sparc

2011-07-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  8 09:21:17 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc

Log Message:
XXX: like ppc, build sparc gmp files with -DPIC for now.

now /usr/bin/cc in a gcc 4.5.3 world works on a sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc

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/lib/libgmp/arch/sparc/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc	Fri Jul  8 09:21:17 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/08 09:21:17 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -170,9 +170,14 @@
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
 	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
 
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
-	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s
 CLEANFILES+=	${_build:R}.s



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jul  7 06:30:03 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/i386: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: config.m4

Log Message:
remove CONFIG_TOP_SRCDIR definitions provided by our Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/config.m4
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.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/lib/libgmp/arch/alpha/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4:1.1	Thu Jul  7 02:06:32 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src3/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4:1.1	Thu Jul  7 02:06:33 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src3/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.2	Fri Jul  1 01:49:42 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-dnl define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4:1.1	Sat Jul  2 13:43:05 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src3/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4:1.2
--- 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc

2011-07-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jul  7 08:02:52 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc

Log Message:
for now, compile all the powerpc asm files -DPIC.  fix this properly by
either compiling the dynamic version in a other dir separately, or call
gcc on the fly with the right arguments without generating .S file at all.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc

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/lib/libgmp/arch/powerpc/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc	Thu Jul  7 08:02:52 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/07 08:02:52 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -175,11 +175,11 @@
 
 BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
 
-M4FLAGS.mode1s.o= -DPIC
+M4FLAGS= -DPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
-		${M4FLAGS.${.TARGET:R}} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
 		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/i386

2011-07-07 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Thu Jul  7 17:55:26 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc

Log Message:
ignore error of rmdir, to let make clean succeed in an already
clean directory


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc

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/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.4	Wed Jul  6 19:52:06 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Thu Jul  7 17:55:26 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.4 2011/07/06 19:52:06 drochner Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2011/07/07 17:55:26 drochner Exp $
 
 SRCS+= \
 	random.c \
@@ -185,7 +185,7 @@
 CLEANFILES+=	config.m4
 clean: cleandummy
 cleandummy: .PHONY
-	rmdir dummy
+	-rmdir dummy
 
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2011-07-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul  4 12:00:15 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
don't force LIBGMP_MACHINE_ARCH:=${MLIBDIR}.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.7 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.8
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.7	Sun Jul  3 15:25:11 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Mon Jul  4 12:00:15 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2011/07/03 15:25:11 mrg Exp $
+#	$NetBSD: Makefile,v 1.8 2011/07/04 12:00:15 mrg Exp $
 
 .include bsd.init.mk
 
@@ -176,7 +176,7 @@
 CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr gen-trialdivtab
 
 .if defined(MLIBDIR)
-LIBGMP_MACHINE_ARCH:=${MLIBDIR}
+LIBGMP_MACHINE_ARCH?=${MLIBDIR}
 .endif
 LIBGMP_MACHINE_ARCH?=${MACHINE_ARCH}
 



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:43:17 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc

Log Message:
clean up the created .s files.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/Makefile.inc

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/lib/libgmp/arch/arm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.1	Fri Jul  1 01:51:02 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/01 01:51:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -174,7 +174,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.1	Fri Jul  1 01:51:02 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/01 01:51:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -174,7 +174,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2	Fri Jul  1 01:49:18 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/01 01:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -186,7 +186,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.1	Sat Jul  2 13:43:05 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/02 13:43:05 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -172,7 +172,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 07:26:21 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: gmp.h

Log Message:
re-generate (add mpn_udiv_w_sdiv prototype.)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h

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/lib/libgmp/arch/powerpc/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.1	Fri Jul  1 01:51:03 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h	Sun Jul  3 07:26:21 2011
@@ -1661,6 +1661,10 @@
 #define mpn_zero __MPN(zero)
 __GMP_DECLSPEC void mpn_zero __GMP_PROTO ((mp_ptr, mp_size_t));
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn__udiv_w_sdiv __GMP_PROTO ((mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t));
+
+
 / mpz inlines /
 
 /* The following are provided as inlines where possible, but always exist as



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:25:11 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
clean up another generator.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/lib/libgmp/Makefile

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.6 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.7
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.6	Sat Jul  2 14:04:30 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Sun Jul  3 15:25:11 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2011/07/02 14:04:30 mrg Exp $
+#	$NetBSD: Makefile,v 1.7 2011/07/03 15:25:11 mrg Exp $
 
 .include bsd.init.mk
 
@@ -173,7 +173,7 @@
 	${HOST_CC} -o ${.OBJDIR}/gen-psqr ${.ALLSRC}
 	${.OBJDIR}/gen-psqr ${GMP_LIMB_BITS} 0  ${.OBJDIR}/perfsqr.h
 
-CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr
+CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr gen-trialdivtab
 
 .if defined(MLIBDIR)
 LIBGMP_MACHINE_ARCH:=${MLIBDIR}



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

2011-07-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jul  2 14:03:21 UTC 2011

Modified Files:
src/external/lgpl3/gmp: build-gmp-Makefile.inc.awk

Log Message:
also match .s and .S files for asm sources.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk

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/build-gmp-Makefile.inc.awk
diff -u src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.2 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.3
--- src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.2	Wed Jun 29 05:18:32 2011
+++ src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk	Sat Jul  2 14:03:20 2011
@@ -16,7 +16,7 @@
 		} else {
 			c_src_list[$5] = $3
 		}
-	} else if (match($3, /\.asm$/)) {
+	} else if (match($3, /\.(asm|s|S)$/)) {
 		asm_list[$5] = $3
 	}
 }



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/vax

2011-07-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jul  2 14:04:14 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc config.m4

Log Message:
make this mostly appear to work by using the C versions for now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/config.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/lib/libgmp/arch/vax/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc:1.1	Sat Jul  2 13:36:57 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc	Sat Jul  2 14:04:14 2011
@@ -1,145 +1,168 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/02 13:36:57 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/02 14:04:14 mrg Exp $
+
+SRCS+= \
+	random.c \
+	divrem_2.c \
+	toom_interpolate_7pts.c \
+	sbpi1_divappr_q.c \
+	random2.c \
+	mu_bdiv_q.c \
+	toom32_mul.c \
+	toom44_mul.c \
+	toom8h_mul.c \
+	toom2_sqr.c \
+	zero.c \
+	mod_1_4.c \
+	gcdext.c \
+	binvert.c \
+	mu_div_q.c \
+	invertappr.c \
+	dump.c \
+	mu_divappr_q.c \
+	dcpi1_div_qr.c \
+	redc_1_sec.c \
+	toom6_sqr.c \
+	divrem_1.c \
+	mod_1.c \
+	divexact.c \
+	powlo.c \
+	mul.c \
+	set_str.c \
+	toom42_mul.c \
+	toom_interpolate_6pts.c \
+	dcpi1_divappr_q.c \
+	copyd.c \
+	toom_eval_dgr3_pm2.c \
+	mod_1_3.c \
+	com.c \
+	copyi.c \
+	toom_couple_handling.c \
+	add.c \
+	toom_interpolate_12pts.c \
+	perfsqr.c \
+	toom53_mul.c \
+	toom_eval_pm2exp.c \
+	mu_div_qr.c \
+	toom_interpolate_16pts.c \
+	mod_34lsub1.c \
+	bdiv_q.c \
+	toom22_mul.c \
+	toom4_sqr.c \
+	div_q.c \
+	jacbase.c \
+	gcdext_subdiv_step.c \
+	mullo_n.c \
+	toom33_mul.c \
+	toom_eval_dgr3_pm1.c \
+	mod_1_2.c \
+	sub_1.c \
+	trialdiv.c \
+	add_1.c \
+	sqr_basecase.c \
+	toom_interpolate_5pts.c \
+	sbpi1_bdiv_q.c \
+	pre_mod_1.c \
+	hgcd.c \
+	bdiv_dbm1c.c \
+	sqrtrem.c \
+	bdiv_q_1.c \
+	gcdext_1.c \
+	toom63_mul.c \
+	mul_basecase.c \
+	toom8_sqr.c \
+	neg.c \
+	udiv_w_sdiv.c \
+	gcdext_lehmer.c \
+	divis.c \
+	dcpi1_div_q.c \
+	subcnd_n.c \
+	toom_eval_pm2.c \
+	hgcd2.c \
+	toom62_mul.c \
+	sbpi1_bdiv_qr.c \
+	scan1.c \
+	pre_divrem_1.c \
+	perfpow.c \
+	get_str.c \
+	mullo_basecase.c \
+	mulmod_bnm1.c \
+	tdiv_qr.c \
+	toom43_mul.c \
+	mod_1_1.c \
+	matrix22_mul.c \
+	powm_sec.c \
+	divrem.c \
+	gcd_1.c \
+	dcpi1_bdiv_qr.c \
+	mul_n.c \
+	redc_2.c \
+	toom6h_mul.c \
+	mul_fft.c \
+	sqrmod_bnm1.c \
+	powm.c \
+	rootrem.c \
+	mode1o.c \
+	toom_interpolate_8pts.c \
+	remove.c \
+	lshiftc.c \
+	dive_1.c \
+	cmp.c \
+	toom_eval_pm1.c \
+	scan0.c \
+	gcd_subdiv_step.c \
+	sbpi1_div_qr.c \
+	invert.c \
+	sub.c \
+	toom_eval_pm2rexp.c \
+	dcpi1_bdiv_q.c \
+	redc_1.c \
+	sqr.c \
+	nussbaumer_mul.c \
+	mu_bdiv_qr.c \
+	pow_1.c \
+	gcd_lehmer.c \
+	get_d.c \
+	toom52_mul.c \
+	sbpi1_div_q.c \
+	diveby3.c \
+	fib2_ui.c \
+	bdiv_qr.c \
+	toom3_sqr.c \
+	gcd.c \
+	redc_n.c \
 
 C_SRCS_LIST= \
-	toom6h_mul.c		mpn/generic/toom6h_mul.c \
-	toom3_sqr.c		mpn/generic/toom3_sqr.c \
-	copyi.c			mpn/generic/copyi.c \
-	sqrtrem.c		mpn/generic/sqrtrem.c \
-	iorn_n.c		mpn/generic/logops_n.c \
-	bdiv_qr.c		mpn/generic/bdiv_qr.c \
-	matrix22_mul.c		mpn/generic/matrix22_mul.c \
-	powlo.c			mpn/generic/powlo.c \
-	tdiv_qr.c		mpn/generic/tdiv_qr.c \
-	gcd_1.c			mpn/generic/gcd_1.c \
-	sqrmod_bnm1.c		mpn/generic/sqrmod_bnm1.c \
-	zero.c			mpn/generic/zero.c \
-	cmp.c			mpn/generic/cmp.c \
-	toom_couple_handling.c	mpn/generic/toom_couple_handling.c \
-	toom32_mul.c		mpn/generic/toom32_mul.c \
-	dump.c			mpn/generic/dump.c \
-	toom62_mul.c		mpn/generic/toom62_mul.c \
-	dive_1.c		mpn/generic/dive_1.c \
-	toom44_mul.c		mpn/generic/toom44_mul.c \
-	nand_n.c		mpn/generic/logops_n.c \
-	hgcd.c			mpn/generic/hgcd.c \
-	ior_n.c			mpn/generic/logops_n.c \
-	get_d.c			mpn/generic/get_d.c \
-	bdiv_dbm1c.c		mpn/generic/bdiv_dbm1c.c \
-	nussbaumer_mul.c	mpn/generic/nussbaumer_mul.c \
-	pre_divrem_1.c		mpn/generic/pre_divrem_1.c \
-	andn_n.c		mpn/generic/logops_n.c \
-	dcpi1_div_q.c		mpn/generic/dcpi1_div_q.c \
-	sbpi1_div_qr.c		mpn/generic/sbpi1_div_qr.c \
-	dcpi1_bdiv_qr.c		mpn/generic/dcpi1_bdiv_qr.c \
-	bdiv_q_1.c		mpn/generic/bdiv_q_1.c \
-	gcdext_1.c		mpn/generic/gcdext_1.c \
-	copyd.c			mpn/generic/copyd.c \
-	toom42_mul.c		mpn/generic/toom42_mul.c \
-	xnor_n.c		mpn/generic/logops_n.c \
-	dcpi1_div_qr.c		mpn/generic/dcpi1_div_qr.c \
-	sqr_basecase.c		mpn/generic/sqr_basecase.c \
-	toom_interpolate_7pts.c	mpn/generic/toom_interpolate_7pts.c \
-	toom63_mul.c		mpn/generic/toom63_mul.c \
-	gcdext.c		mpn/generic/gcdext.c \
-	mu_divappr_q.c		mpn/generic/mu_divappr_q.c \
-	mul_n.c			mpn/generic/mul_n.c \
-	gcd_subdiv_step.c	mpn/generic/gcd_subdiv_step.c \
-	udiv_w_sdiv.c		mpn/generic/udiv_w_sdiv.c 

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



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:48:02 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: gmp-mparam.h gmp.h

Log Message:
XXX: patch these files to let them work with src/compat style builds


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h

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/lib/libgmp/arch/sparc64/gmp-mparam.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h:1.1	Wed Jun 29 02:56:24 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h	Fri Jul  1 01:48:02 2011
@@ -18,8 +18,13 @@
 You should have received a copy of the GNU Lesser General Public License
 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 
+#ifdef _LP64
 #define GMP_LIMB_BITS 64
 #define BYTES_PER_MP_LIMB 8
+#else
+#define GMP_LIMB_BITS 32
+#define BYTES_PER_MP_LIMB 4
+#endif
 
 /* 500 MHz ultrasparc2 running GNU/Linux */
 
Index: src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h:1.1	Wed Jun 29 02:56:24 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h	Fri Jul  1 01:48:02 2011
@@ -30,7 +30,11 @@
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #define __GMP_HAVE_HOST_CPU_FAMILY_power   0
 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#ifdef _LP64
 #define GMP_LIMB_BITS  64
+#else
+#define GMP_LIMB_BITS  32
+#endif
 #define GMP_NAIL_BITS  0
 #endif
 #define GMP_NUMB_BITS (GMP_LIMB_BITS - GMP_NAIL_BITS)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h:1.1	Thu Jun 23 12:09:30 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h	Fri Jul  1 01:48:02 2011
@@ -18,8 +18,13 @@
 You should have received a copy of the GNU Lesser General Public License
 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 
+#ifdef _LP64
 #define GMP_LIMB_BITS 64
 #define BYTES_PER_MP_LIMB 8
+#else
+#define GMP_LIMB_BITS 32
+#define BYTES_PER_MP_LIMB 4
+#endif
 
 
 #define MOD_1_NORM_THRESHOLD 0  /* always */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.1	Tue Jun 21 04:23:56 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h	Fri Jul  1 01:48:02 2011
@@ -30,7 +30,11 @@
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #define __GMP_HAVE_HOST_CPU_FAMILY_power   0
 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#ifdef _LP64
 #define GMP_LIMB_BITS  64
+#else
+#define GMP_LIMB_BITS  32
+#endif
 #define GMP_NAIL_BITS  0
 #endif
 #define GMP_NUMB_BITS (GMP_LIMB_BITS - GMP_NAIL_BITS)



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/i386

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:49:18 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc config.h

Log Message:
use C versions of various sources for now.  there's an m4 problem that
fails to properly deal with defframe() macro being defined.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h

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/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.1	Wed Jun 29 08:06:47 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Fri Jul  1 01:49:18 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/06/29 08:06:47 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/01 01:49:18 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -134,25 +134,34 @@
 	andn_n.c		mpn/generic/logops_n.c \
 
 ASM_SRCS_LIST= \
-	add_n.asm		mpn/x86/aors_n.asm \
-	sqr_basecase.asm		mpn/x86/sqr_basecase.asm \
 	submul_1.asm		mpn/x86/aorsmul_1.asm \
-	umul.asm		mpn/x86/umul.asm \
-	mul_basecase.asm		mpn/x86/mul_basecase.asm \
-	lshift.asm		mpn/x86/lshift.asm \
-	mul_1.asm		mpn/x86/mul_1.asm \
-	divrem_1.asm		mpn/x86/divrem_1.asm \
-	copyd.asm		mpn/x86/copyd.asm \
 	bdiv_dbm1c.asm		mpn/x86/bdiv_dbm1c.asm \
-	udiv.asm		mpn/x86/udiv.asm \
-	dive_1.asm		mpn/x86/dive_1.asm \
-	copyi.asm		mpn/x86/copyi.asm \
-	rshift.asm		mpn/x86/rshift.asm \
-	mod_34lsub1.asm		mpn/x86/mod_34lsub1.asm \
-	invert_limb.asm		mpn/x86/invert_limb.asm \
 	addmul_1.asm		mpn/x86/aorsmul_1.asm \
 	divrem_2.asm		mpn/x86/divrem_2.asm \
-	sub_n.asm		mpn/x86/aors_n.asm \
+
+# XXX using C versions
+#	add_n.asm		mpn/x86/aors_n.asm \
+#	bdiv_q_1.asm		mpn/x86_64/bdiv_q_1.asm \
+#	copyd.asm		mpn/x86/copyd.asm \
+#	copyi.asm		mpn/x86/copyi.asm \
+#	dive_1.asm		mpn/x86/dive_1.asm \
+#	divrem_1.asm		mpn/x86/divrem_1.asm \
+#	invert_limb.asm		mpn/x86/invert_limb.asm \
+#	lshift.asm		mpn/x86/lshift.asm \
+#	rshift.asm		mpn/x86/rshift.asm \
+#	mod_34lsub1.asm		mpn/x86/mod_34lsub1.asm \
+#	umul.asm		mpn/x86/umul.asm \
+#	mul_1.asm		mpn/x86/mul_1.asm \
+#	sqr_basecase.asm	mpn/x86/sqr_basecase.asm \
+#	mul_basecase.asm	mpn/x86/mul_basecase.asm \
+#	sub_n.asm		mpn/x86/aors_n.asm \
+
+#	udiv.asm		mpn/x86/udiv.asm \
+
+SRCS+=	add_n.c bdiv_q_1.c copyd.c copyi.c dive_1.c lshift.c rshift.c mod_34lsub1.c
+SRCS+=	mul_1.c sqr_basecase.c mul_basecase.c sub_n.c divrem_1.c
+# XXX? put in C_SRCS_LIST?
+# divrem.c
 
 gen-trialdivtab: gen-trialdivtab.c
 	${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h:1.1	Wed Jun 29 08:06:47 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h	Fri Jul  1 01:49:18 2011
@@ -215,7 +215,8 @@
 implementation of the corresponding routine exists.  */
 #define HAVE_NATIVE_mpn_add_n 1
 /* #undef HAVE_NATIVE_mpn_add_n_sub_n */
-#define HAVE_NATIVE_mpn_add_nc 1
+/* XXXMRG */
+/* #define HAVE_NATIVE_mpn_add_nc 1 */
 /* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
 /* #undef HAVE_NATIVE_mpn_addlsh1_n */
 /* #undef HAVE_NATIVE_mpn_addlsh2_n */
@@ -243,7 +244,8 @@
 #define HAVE_NATIVE_mpn_divrem_2 1
 /* #undef HAVE_NATIVE_mpn_gcd_1 */
 /* #undef HAVE_NATIVE_mpn_hamdist */
-#define HAVE_NATIVE_mpn_invert_limb 1
+/* XXXMRG */
+/* #define HAVE_NATIVE_mpn_invert_limb 1 */
 /* #undef HAVE_NATIVE_mpn_ior_n */
 /* #undef HAVE_NATIVE_mpn_iorn_n */
 #define HAVE_NATIVE_mpn_lshift 1
@@ -281,7 +283,7 @@
 #define HAVE_NATIVE_mpn_sqr_basecase 1
 /* #undef HAVE_NATIVE_mpn_sqr_diagonal */
 #define HAVE_NATIVE_mpn_sub_n 1
-#define HAVE_NATIVE_mpn_sub_nc 1
+/* #define HAVE_NATIVE_mpn_sub_nc 1 */
 /* #undef HAVE_NATIVE_mpn_sublsh1_n */
 /* #undef HAVE_NATIVE_mpn_sublsh2_n */
 /* #undef HAVE_NATIVE_mpn_sublsh_n */



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:49:43 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/i386: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: config.m4

Log Message:
remove hard-coded CONFIG_TOP_SRCDIR macro definition


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.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/lib/libgmp/arch/i386/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.1	Wed Jun 29 08:06:47 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4	Fri Jul  1 01:49:42 2011
@@ -1,7 +1,7 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
+dnl define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4:1.1	Wed Jun 29 02:56:24 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4	Fri Jul  1 01:49:43 2011
@@ -1,7 +1,7 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
+dnl define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2011-06-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Jun 29 08:09:43 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
enable lint.
fix the 32 / 64 bit problem.


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

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.3 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.4
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.3	Fri Jun 24 03:50:23 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Wed Jun 29 08:09:43 2011
@@ -1,12 +1,9 @@
-#	$NetBSD: Makefile,v 1.3 2011/06/24 03:50:23 mrg Exp $
+#	$NetBSD: Makefile,v 1.4 2011/06/29 08:09:43 mrg Exp $
 
 .include bsd.init.mk
 
 DIST=${.CURDIR}/../../dist
 
-# XXX
-MKLINT=no
-
 LIB=	gmp
 
 MPF_SRCS = \
@@ -167,29 +164,29 @@
 
 fac_ui.h: gen-fac_ui.c
 	${HOST_CC} -o ${.OBJDIR}/gen-fac_ui ${.ALLSRC}
-	${.OBJDIR}/gen-fac_ui 64 0  ${.OBJDIR}/fac_ui.h
+	${.OBJDIR}/gen-fac_ui ${GMP_LIMB_BITS} 0  ${.OBJDIR}/fac_ui.h
 
 gen-fib: gen-fib.c
 	${HOST_CC} -o ${.OBJDIR}/gen-fib ${.ALLSRC}
 
 fib_table.h: gen-fib
-	${.OBJDIR}/gen-fib header 64 0  ${.OBJDIR}/fib_table.h
+	${.OBJDIR}/gen-fib header ${GMP_LIMB_BITS} 0  ${.OBJDIR}/fib_table.h
 
 fib_table.c: gen-fib
-	${.OBJDIR}/gen-fib table 64 0  ${.OBJDIR}/fib_table.c
+	${.OBJDIR}/gen-fib table ${GMP_LIMB_BITS} 0  ${.OBJDIR}/fib_table.c
 
 gen-bases: gen-bases.c
 	${HOST_CC} -o ${.OBJDIR}/gen-bases ${.ALLSRC} -lm
 
 mp_bases.h: gen-bases
-	${.OBJDIR}/gen-bases header 64 0  ${.OBJDIR}/mp_bases.h
+	${.OBJDIR}/gen-bases header ${GMP_LIMB_BITS} 0  ${.OBJDIR}/mp_bases.h
 
 mp_bases.c: gen-bases
-	${.OBJDIR}/gen-bases table 64 0  ${.OBJDIR}/mp_bases.c
+	${.OBJDIR}/gen-bases table ${GMP_LIMB_BITS} 0  ${.OBJDIR}/mp_bases.c
 
 perfsqr.h: gen-psqr.c
 	${HOST_CC} -o ${.OBJDIR}/gen-psqr ${.ALLSRC}
-	${.OBJDIR}/gen-psqr 64 0  ${.OBJDIR}/perfsqr.h
+	${.OBJDIR}/gen-psqr ${GMP_LIMB_BITS} 0  ${.OBJDIR}/perfsqr.h
 
 CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr
 



CVS commit: src/external/lgpl3/gmp

2011-06-28 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Wed Jun 29 01:38:27 UTC 2011

Modified Files:
src/external/lgpl3/gmp: README

Log Message:
Update date (ok phone).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/README

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/README
diff -u src/external/lgpl3/gmp/README:1.1 src/external/lgpl3/gmp/README:1.2
--- src/external/lgpl3/gmp/README:1.1	Fri Jun 24 03:50:23 2011
+++ src/external/lgpl3/gmp/README	Wed Jun 29 01:38:27 2011
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.1 2011/06/24 03:50:23 mrg Exp $
+$NetBSD: README,v 1.2 2011/06/29 01:38:27 simonb Exp $
 
 GMP in NetBSD.  We need GMP for GCC = 4.2.
 
@@ -43,4 +43,4 @@
 
 
 m...@netbsd.org
-- 2001/06/22
+- 2011/06/22



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2011-06-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jun 23 12:09:30 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile
Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc config.m4
gmp-mparam.h

Log Message:
make this build on amd64.

XXX: need to confirm that all the objects are built but this is
XXX: enough to make GCC happy.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h

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/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.1 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.2
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.1	Tue Jun 21 04:23:56 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Thu Jun 23 12:09:30 2011
@@ -1,479 +1,300 @@
-#	$NetBSD: Makefile,v 1.1 2011/06/21 04:23:56 mrg Exp $
+#	$NetBSD: Makefile,v 1.2 2011/06/23 12:09:30 mrg Exp $
 
 .include bsd.init.mk
 
-LIB=	gmp
+DIST=${.CURDIR}/../../dist
+
+# XXX
+MKLINT=no
 
-SRCS=			\
-	assert.c	\
-	compat.c	\
-	errno.c	\
-	extract-dbl.c	\
-	invalid.c	\
-	memory.c	\
-	mp_bpl.c	\
-	mp_clz_tab.c	\
-	mp_dv_tab.c	\
-	mp_minv_tab.c	\
-	mp_get_fns.c	\
-	mp_set_fns.c	\
-	rand.c	\
-	randclr.c	\
-	randdef.c	\
-	randiset.c	\
-	randlc2s.c	\
-	randlc2x.c	\
-	randmt.c	\
-	randmts.c	\
-	rands.c	\
-	randsd.c	\
-	randsdui.c	\
-	randbui.c	\
-	randmui.c	\
-	version.c	\
-	nextprime.c	\
-	tal-reent.c	\
-	init.c	\
-	init2.c	\
-	inits.c	\
-	set.c	\
-	set_ui.c	\
-	set_si.c	\
-	set_str.c	\
-	set_d.c	\
-	set_z.c	\
-	iset.c	\
-	iset_ui.c	\
-	iset_si.c	\
-	iset_str.c	\
-	iset_d.c	\
-	clear.c	\
-	clears.c	\
-	get_str.c	\
-	dump.c	\
-	size.c	\
-	eq.c	\
-	reldiff.c	\
-	sqrt.c	\
-	random2.c	\
-	inp_str.c	\
-	out_str.c	\
-	add.c	\
-	add_ui.c	\
-	sub.c	\
-	sub_ui.c	\
-	ui_sub.c	\
-	mul.c	\
-	mul_ui.c	\
-	div.c	\
-	div_ui.c	\
-	cmp.c	\
-	cmp_d.c	\
-	cmp_ui.c	\
-	cmp_si.c	\
-	mul_2exp.c	\
-	div_2exp.c	\
-	abs.c	\
-	neg.c	\
-	set_q.c	\
-	get_d.c	\
-	get_d_2exp.c	\
-	set_dfl_prec.c	\
-	set_prc.c	\
-	set_prc_raw.c	\
-	get_dfl_prec.c	\
-	get_prc.c	\
-	ui_div.c	\
-	sqrt_ui.c	\
-	ceilfloor.c	\
-	trunc.c	\
-	pow_ui.c	\
-	urandomb.c	\
-	swap.c	\
-	fits_sint.c	\
-	fits_slong.c	\
-	fits_sshort.c	\
-	fits_uint.c	\
-	fits_ulong.c	\
-	fits_ushort.c	\
-	get_si.c	\
-	get_ui.c	\
-	int_p.c	\
-	abs.c	\
-	add.c	\
-	add_ui.c	\
-	aorsmul.c	\
-	aorsmul_i.c	\
-	and.c	\
-	array_init.c	\
-	bin_ui.c	\
-	bin_uiui.c	\
-	cdiv_q.c	\
-	cdiv_q_ui.c	\
-	cdiv_qr.c	\
-	cdiv_qr_ui.c	\
-	cdiv_r.c	\
-	cdiv_r_ui.c	\
-	cdiv_ui.c	\
-	cfdiv_q_2exp.c	\
-	cfdiv_r_2exp.c	\
-	clear.c	\
-	clears.c	\
-	clrbit.c	\
-	cmp.c	\
-	cmp_d.c	\
-	cmp_si.c	\
-	cmp_ui.c	\
-	cmpabs.c	\
-	cmpabs_d.c	\
-	cmpabs_ui.c	\
-	com.c	\
-	combit.c	\
-	cong.c	\
-	cong_2exp.c	\
-	cong_ui.c	\
-	divexact.c	\
-	divegcd.c	\
-	dive_ui.c	\
-	divis.c	\
-	divis_ui.c	\
-	divis_2exp.c	\
-	dump.c	\
-	export.c	\
-	fac_ui.c	\
-	fdiv_q.c	\
-	fdiv_q_ui.c	\
-	fdiv_qr.c	\
-	fdiv_qr_ui.c	\
-	fdiv_r.c	\
-	fdiv_r_ui.c	\
-	fdiv_ui.c	\
-	fib_ui.c	\
-	fib2_ui.c	\
-	fits_sint.c	\
-	fits_slong.c	\
-	fits_sshort.c	\
-	fits_uint.c	\
-	fits_ulong.c	\
-	fits_ushort.c	\
-	gcd.c	\
-	gcd_ui.c	\
-	gcdext.c	\
-	get_d.c	\
-	get_d_2exp.c	\
-	get_si.c	\
-	get_str.c	\
-	get_ui.c	\
-	getlimbn.c	\
-	hamdist.c	\
-	import.c	\
-	init.c	\
-	init2.c	\
-	inits.c	\
-	inp_raw.c	\
-	inp_str.c	\
-	invert.c	\
-	ior.c	\
-	iset.c	\
-	iset_d.c	\
-	iset_si.c	\
-	iset_str.c	\
-	iset_ui.c	\
-	jacobi.c	\
-	kronsz.c	\
-	kronuz.c	\
-	kronzs.c	\
-	kronzu.c	\
-	lcm.c	\
-	lcm_ui.c	\
-	lucnum_ui.c	\
-	lucnum2_ui.c	\
-	millerrabin.c	\
-	mod.c	\
-	mul.c	\
-	mul_2exp.c	\
-	mul_si.c	\
-	mul_ui.c	\
-	n_pow_ui.c	\
-	neg.c	\
-	nextprime.c	\
-	out_raw.c	\
-	out_str.c	\
-	perfpow.c	\
-	perfsqr.c	\
-	popcount.c	\
-	pow_ui.c	\
-	powm.c	\
-	powm_sec.c	\
-	powm_ui.c	\
-	pprime_p.c	\
-	random.c	\
-	random2.c	\
-	realloc.c	\
-	realloc2.c	\
-	remove.c	\
-	root.c	\
-	rootrem.c	\
-	rrandomb.c	\
-	scan0.c	\
-	scan1.c	\
-	set.c	\
-	set_d.c	\
-	set_f.c	\
-	set_q.c	\
-	set_si.c	\
-	set_str.c	\
-	set_ui.c	\
-	setbit.c	\
-	size.c	\
-	sizeinbase.c	\
-	sqrt.c	\
-	sqrtrem.c	\
-	sub.c	\
-	sub_ui.c	\
-	swap.c	\
-	tdiv_ui.c	\
-	tdiv_q.c	\
-	tdiv_q_2exp.c	\
-	tdiv_q_ui.c	\
-	tdiv_qr.c	\
-	tdiv_qr_ui.c	\
-	tdiv_r.c	\
-	tdiv_r_2exp.c	\
-	tdiv_r_ui.c	\
-	tstbit.c	\
-	ui_pow_ui.c	\
-	ui_sub.c	\
-	urandomb.c	\
-	urandomm.c	\
-	xor.c	\
-	abs.c	\
-	aors.c	\
-	canonicalize.c	\
-	clear.c	\
-	clears.c	\
-	cmp.c	\
-	cmp_si.c	\
-	cmp_ui.c	\
-	div.c	\
-	get_d.c	\
-	get_den.c	\
-	get_num.c	\
-	get_str.c	\
-	init.c	\
-	inits.c	\
-	inp_str.c	\
-	inv.c	\
-	md_2exp.c	\
-	mul.c	\
-	neg.c	\
-	out_str.c	\
-	set.c	\
-	set_den.c	\
-	set_num.c	\
-