head 1.9; access; symbols pkgsrc-2017Q1:1.8.0.34 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.32 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.30 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.28 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.26 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.24 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.22 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.20 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.18 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.16 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.14 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.12 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.10 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.8 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.6 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.4 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.2 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.7.0.46 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.44 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.42 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.40 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.38 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.36 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.34 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.32 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.30 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.28 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.26 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.24 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.22 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.20 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.18 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.16 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.14 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.12 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.10 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.8 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.6 pkgsrc-2008Q1:1.7.0.4 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.2 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.6.0.8 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.6 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.4 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.2 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.5.0.14 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.12 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.10 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.8 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.6 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.4 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.2 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.4 netbsd-1-5-PATCH001:1.3 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.9 date 2017.06.15.04.11.50; author msaitoh; state dead; branches; next 1.8; commitid yWUxWlxo2qQvgqVz; 1.8 date 2013.01.31.20.30.26; author adam; state Exp; branches 1.8.34.1; next 1.7; 1.7 date 2007.11.25.08.35.32; author rillig; state Exp; branches; next 1.6; 1.6 date 2006.12.09.03.38.16; author jnemeth; state dead; branches; next 1.5; 1.5 date 2005.03.15.15.51.30; author wiz; state Exp; branches; next 1.4; 1.4 date 2002.04.10.12.37.55; author hubertf; state dead; branches; next 1.3; 1.3 date 2000.12.31.14.05.30; author skrll; state Exp; branches; next 1.2; 1.2 date 2000.06.30.16.52.56; author danw; state dead; branches; next 1.1; 1.1 date 99.07.16.21.12.57; author jlam; state Exp; branches; next ; 1.8.34.1 date 2017.06.21.18.26.00; author bsiegert; state dead; branches; next ; commitid c0PBTyg57r8xOgWz; desc @@ 1.9 log @ Fix PR pkg/51788(fails in configure phase). Use calloc() instead of malloc(). This bug was observed with "ln -s J /etc/malloc.conf" @ text @$NetBSD: patch-ab,v 1.8 2013/01/31 20:30:26 adam Exp $ Fixed detection of __attribute__((__mode__(XX))) for sunpro. --- acinclude.m4.orig 2007-09-01 12:09:03.000000000 +0200 +++ acinclude.m4 2007-11-25 09:26:07.000000000 +0100 @@@@ -3068,7 +3068,15 @@@@ dnl Introduced in gcc 2.2, but perhaps AC_DEFUN([GMP_C_ATTRIBUTE_MODE], [AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works], gmp_cv_c_attribute_mode, -[AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], , +[AC_TRY_COMPILE([ + typedef int SItype __attribute__ ((mode (SI))); + typedef int QItype __attribute__ ((mode (QI))); +], [ + switch (1) { + case sizeof(SItype): + case sizeof(QItype): ; + } +], gmp_cv_c_attribute_mode=yes, gmp_cv_c_attribute_mode=no) ]) if test $gmp_cv_c_attribute_mode = yes; then @ 1.8 log @Changes 5.1.0: BUGS FIXED * When reading a C++ number (like mpz_class) in an istream reaches the end of the stream, the eofbit is now set. * The result sign of mpz_rootrem's remainder is now always correct. * The mpz_remove function now handles negative divisors. * Contains all fixes from release 5.0.5. SPEEDUPS * The n-factorial and n-over-k functions have been reimplemented for great speedups for small and large operands. * New subquadratic algorithm for the Kronecker/Jacobi/Legendre symbol. * Major speedup for ARM, in particular ARM Cortex-A9 and A15, thanks to broad assembly support. * Significant speedup or POWER6 and POWER7 thanks to improved assembly. * The performance under M$ Windows' 64-bit ABI has been greatly improved thanks to complete assembly support. * Minor speed improvements of many functions and for many platforms. FEATURES * Many new CPUs recognised. * New functions for multi-factorials, and primorial: mpz_2fac_ui, mpz_mfac_uiui and mpz_primorial_ui. * The mpz_powm_sec function now uses side-channel silent division for converting into Montgomery residues. * The fat binary mechanism is now more robust in its CPU recognition. MISC * Inclusion of assembly code is now controlled by the configure options --enable-assembly and --disable-assembly. The "none" CPU targets is gone. * In C++, the conversions mpq_class->mpz_class, mpf_class->mpz_class and mpf_class->mpq_class are now explicit. * Includes "mini-gmp", a small, portable, but less efficient, implementation of a subset of GMP's mpn and mpz interfaces. Used in GMP bootstrap, but it can also be bundled with applications as a fallback when the real GMP library is unavailable. * The ABIs under AIX are no longer called aix32 and aix64, but mode64 and 32. This is more consistent with other powerpc systems. * The coverage of the testsuite has been improved, using the lcov tool. See also http://gmplib.org/devel/lcov/. * It is now possible to compile GMP using a C++ compiler. * K&R C compilers are no longer supported. * The BSD MP compatibility functions have been removed. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.7 2007/11/25 08:35:32 rillig Exp $ @ 1.8.34.1 log @Pullup ticket #5482 - requested by sevan devel/gmp: build fix Revisions pulled up: - devel/gmp/distinfo 1.53-1.54 - devel/gmp/patches/patch-ab deleted - devel/gmp/patches/patch-acinclude.m4 1.1 --- Module Name: pkgsrc Committed By: msaitoh Date: Thu Jun 15 04:11:50 UTC 2017 Modified Files: pkgsrc/devel/gmp: distinfo Added Files: pkgsrc/devel/gmp/patches: patch-acinclude.m4 Removed Files: pkgsrc/devel/gmp/patches: patch-ab Log Message: Fix PR pkg/51788(fails in configure phase). Use calloc() instead of malloc(). This bug was observed with "ln -s J /etc/malloc.conf" --- Module Name: pkgsrc Committed By: msaitoh Date: Thu Jun 15 04:12:32 UTC 2017 Modified Files: pkgsrc/devel/gmp: distinfo Log Message: Fix distinfo. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.8 2013/01/31 20:30:26 adam Exp $ @ 1.7 log @Sunpro accepts __attribute__((mode ...)), but ignores it. Fixed the configure test and reported it upstream. @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 @@@@ -3016,7 +3016,15 @@@@ dnl Introduced in gcc 2.2, but perhaps @ 1.6 log @Update to GNU MP 4.2.1 Changes between GMP version 4.2 and 4.2.1 Bugs: * Shared library numbers corrected. * Broken support for 32-bit AIX fixed. * Misc minor fixes. Speedups: * Exact division (mpz_divexact) now falls back to plain division for large operands. Features: * Support for some new systems. Changes between GMP version 4.1.4 and 4.2 Bugs: * Minor bug fixes and code generalizations. * Expanded and improved test suite. Speedups: * Many minor optimizations, too many to mention here. * Division now always subquadratic. * Computation of n-factorial much faster. * Added basic x86-64 assembly code. * Floating-point output is now subquadratic for all bases. * FFT multiply code now about 25% faster. * Toom3 multiply code faster. Features: * Much improved configure. * Workarounds for many more compiler bugs. * Temporary allocations are now made on the stack only if small. * New systems supported: HPPA-2.0 gcc, IA-64 HP-UX, PowerPC-64 Darwin, Sparc64 GNU/Linux. * New i386 fat binaries, selecting optimised code at runtime (--enable-fat). * New build option: --enable-profiling=instrument. * New memory function: mp_get_memory_functions. * New Mersenne Twister random numbers: gmp_randinit_mt, also now used for gmp_randinit_default. * New random functions: gmp_randinit_set, gmp_urandomb_ui, gmp_urandomm_ui. * New integer functions: mpz_combit, mpz_rootrem. * gmp_printf etc new type "M" for mp_limb_t. * gmp_scanf and friends now accept C99 hex floats. * Numeric input and output can now be in bases up to 62. * Comparisons mpz_cmp_d, mpz_cmpabs_d, mpf_cmp_d recognise infinities. * Conversions mpz_get_d, mpq_get_d, mpf_get_d truncate towards zero, previously their behaviour was unspecified. * Fixes for overflow issues with operands >= 2^31 bits. Caveats: * mpfr is gone, and will from now on be released only separately. Please see www.mpfr.org. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.5 2005/03/15 15:51:30 wiz Exp $ d3 21 a23 20 --- gmp-impl.h.orig 2004-04-23 01:59:53.000000000 +0200 +++ gmp-impl.h @@@@ -2466,7 +2466,8 @@@@ typedef unsigned int UHWtype; /* Define ieee_double_extract and _GMP_IEEE_FLOATS. */ -#if (defined (__arm__) && (defined (__ARMWEL__) || defined (__linux__))) +#if (defined (__arm__) && !defined(__VFP_FP__) \ + && (defined (__ARMWEL__) || defined (__linux__))) /* Special case for little endian ARM since floats remain in big-endian. */ #define _GMP_IEEE_FLOATS 1 union ieee_double_extract @@@@ -2483,6 +2484,7 @@@@ union ieee_double_extract #else #if defined (_LITTLE_ENDIAN) || defined (__LITTLE_ENDIAN__) \ || defined (__alpha) \ + || (defined (__arm__) && defined (__VFP_FP__) && defined (__ARMEL__)) \ || defined (__clipper__) \ || defined (__cris) \ || defined (__i386__) \ @ 1.5 log @Add patch provided by Richard Earnshaw in PR 23181: "GMP does not handle pure-endian FP on ARM" Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update gmp to 4.0.1. Changes: * Bug fixes. * Speed improvements. * Upwardly binary compatible with 3.x versions. * New CPU support: IA-64, Pentium 4. * Improved CPU support: 21264, Cray vector systems. * Support for all MIPS ABIs: o32, n32, 64. * New systems supported: Darwin, SCO, Windows DLLs. * New divide-and-conquer square root algorithm. * New algorithms chapter in the manual. * New malloc reentrant temporary memory method. * New C++ class interface by Gerardo Ballabio (beta). * Revamped configure, featuring ABI selection. * Speed improvements for mpz_powm and mpz_powm_ui (mainly affecting small operands). * mpz_perfect_power_p now properly recognizes 0, 1, and negative perfect powers. * mpz_hamdist now supports negative operands. * mpz_jacobi now accepts non-positive denominators. * mpz_powm now supports negative exponents. * mpn_mul_1 operand overlap requirements relaxed. * Float input and output uses locale specific decimal point where available. * New gmp_printf, gmp_scanf and related functions. * New division functions: mpz_cdiv_q_2exp, mpz_cdiv_r_2exp, mpz_divexact_ui. * New divisibility tests: mpz_divisible_p, mpz_divisible_ui_p, mpz_divisible_2exp_p, mpz_congruent_p, mpz_congruent_ui_p, mpz_congruent_2exp_p. * New Fibonacci function: mpz_fib2_ui. * New Lucas number functions: mpz_lucnum_ui, mpz_lucnum2_ui. * Other new integer functions: mpz_cmp_d, mpz_cmpabs_d, mpz_get_d_2exp, mpz_init2, mpz_kronecker, mpz_lcm_ui, mpz_realloc2. * New rational I/O: mpq_get_str, mpq_inp_str, mpq_out_str, mpq_set_str. * Other new rational functions: mpq_abs, mpq_cmp_si, mpq_div_2exp, mpq_mul_2exp, mpq_set_f. * New float tests: mpf_integer_p, mpf_fits_sint_p, mpf_fits_slong_p, mpf_fits_sshort_p, mpf_fits_uint_p, mpf_fits_ulong_p, mpf_fits_ushort_p. * Other new float functions: mpf_cmp_d, mpf_get_default_prec, mpf_get_si, mpf_get_ui, mpf_get_d_2exp. * New random functions: gmp_randinit_default, gmp_randinit_lc_2exp_size. * New demo expression string parser (see demos/expr). * New preliminary perl interface (see demos/perl). * Tuned algorithm thresholds for many more CPUs. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2000/12/31 14:05:30 skrll Exp $ d3 3 a5 3 --- mpn/arm/addmul_1.S.orig Mon Jul 24 18:04:21 2000 +++ mpn/arm/addmul_1.S @@@@ -35,9 +35,9 @@@@ d7 16 a22 17 .text .align 0 - .global __gmpn_addmul_1 - .type __gmpn_addmul_1,%function -__gmpn_addmul_1: + .global ___gmpn_addmul_1 + .type ___gmpn_addmul_1,%function +___gmpn_addmul_1: stmfd sp!, { r8-r11, lr } mov z, #0 mov ip, #0 @@@@ -86,4 +86,4 @@@@ mov r0, ip ldmfd sp!, { r8-r11, pc } end: - .size __gmpn_addmul_1, end - __gmpn_addmul_1 + .size ___gmpn_addmul_1, end - ___gmpn_addmul_1 @ 1.3 log @Update to 3.1.1. Split patch-aa into a patch per file while I'm here. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to gmp-3.0.1, including new functions, autoconf/libtool support, and a shared version of the library. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 1999/07/16 21:12:57 jlam Exp $ d3 3 a5 4 --- mpn/configure.in.orig Tue Jun 4 01:52:01 1996 +++ mpn/configure.in Fri Jul 16 17:02:26 1999 @@@@ -38,14 +38,25 @@@@ a29k*-*-*) path="am29000" ;; d7 17 a23 50 # Intel x86 configurations - i[34]86*-*-linuxaout* | i[34]86*-*-linuxoldld* | \ - i[34]86*-*-*bsd*) # x86 running BSD or Linux with a.out + i[3456]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*) + if $CC -E - -dM asm-syntax.h # ELF + else + echo '#define BSD_SYNTAX' >asm-syntax.h # a.out + fi + echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h + case "${target}" in + i[34]86*-*-*bsd*) + path="x86" ;; + i[56]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*) + path="x86/pentium x86" ;; + esac ;; + i[34]86*-*-linuxaout* | i[34]86*-*-linuxoldld*) # x86 running Linux with a.out echo '#define BSD_SYNTAX' >asm-syntax.h echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h path="x86" ;; i[56]86*-*-linuxaout* | pentium-*-linuxaout* | pentiumpro-*-linuxaout* | \ - i[56]86*-*-linuxoldld* | pentium-*-linuxoldld* | pentiumpro-*-linuxoldld* | \ - i[56]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*) + i[56]86*-*-linuxoldld* | pentium-*-linuxoldld* | pentiumpro-*-linuxoldld*) echo '#define BSD_SYNTAX' >asm-syntax.h echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h path="x86/pentium x86" ;; @@@@ -110,10 +121,22 @@@@ case "${target}" in *-*-linuxaout* | *-*-linuxoldld*) config=bsd.h ;; *-sysv* | *-solaris* | *-*-linux*) config="sysv.h" ;; + i[3456]86*-*-*netbsd* | pentium-*-*netbsd* | pentiumpro-*-*netbsd*) + if $CC -E - -dM