Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/gmp/lib/libgmp/arch mknative-gmp for mipsn64*...



details:   https://anonhg.NetBSD.org/src/rev/5472751cd068
branches:  trunk
changeset: 984592:5472751cd068
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 12 18:42:39 2021 +0000

description:
mknative-gmp for mipsn64* and GMP 6.2.1.

diffstat:

 external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h  |  10 +++++-----
 external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 |   2 +-
 external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h     |  13 +++++++------
 external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h  |  10 +++++-----
 external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 |   2 +-
 external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h     |  13 +++++++------
 6 files changed, 26 insertions(+), 24 deletions(-)

diffs (200 lines):

diff -r e7581dece031 -r 5472751cd068 external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h     Mon Jul 12 18:42:23 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h     Mon Jul 12 18:42:39 2021 +0000
@@ -548,7 +548,7 @@
 #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 @@
 #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 @@
 #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 @@
 #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 */
diff -r e7581dece031 -r 5472751cd068 external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4
--- a/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4    Mon Jul 12 18:42:23 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4    Mon Jul 12 18:42:39 2021 +0000
@@ -27,7 +27,7 @@
 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')
diff -r e7581dece031 -r 5472751cd068 external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h        Mon Jul 12 18:42:23 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h        Mon Jul 12 18:42:39 2021 +0000
@@ -361,11 +361,9 @@
     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 @@
 #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 @@
 
 /* Define CC and CFLAGS which were used to build this version of GMP */
 #define __GMP_CC "gcc"
-#define __GMP_CFLAGS "-O2 -pedantic -mabi=n32"
+#define __GMP_CFLAGS "-O2 -pedantic"
 
 /* Major version number is the value of __GNU_MP__ too, above. */
 #define __GNU_MP_VERSION            6
 #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 * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
 
 #define __GMP_H__
diff -r e7581dece031 -r 5472751cd068 external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h     Mon Jul 12 18:42:23 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h     Mon Jul 12 18:42:39 2021 +0000
@@ -548,7 +548,7 @@
 #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 @@
 #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 @@
 #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 @@
 #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 */
diff -r e7581dece031 -r 5472751cd068 external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4
--- a/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4    Mon Jul 12 18:42:23 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4    Mon Jul 12 18:42:39 2021 +0000
@@ -27,7 +27,7 @@
 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_mips64el')
+define_not_for_expansion(`HAVE_HOST_CPU_mipsn64el')
 define_not_for_expansion(`HAVE_ABI_n32')
 define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN')
 define_not_for_expansion(`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')
diff -r e7581dece031 -r 5472751cd068 external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h        Mon Jul 12 18:42:23 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h        Mon Jul 12 18:42:39 2021 +0000
@@ -361,11 +361,9 @@
     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 @@
 #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 @@
 
 /* Define CC and CFLAGS which were used to build this version of GMP */
 #define __GMP_CC "gcc"
-#define __GMP_CFLAGS "-O2 -pedantic -mabi=n32"
+#define __GMP_CFLAGS "-O2 -pedantic"
 
 /* Major version number is the value of __GNU_MP__ too, above. */
 #define __GNU_MP_VERSION            6
 #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 * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
 
 #define __GMP_H__



Home | Main Index | Thread Index | Old Index