Date: Tue, 14 Feb 2017 09:40:20 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434069 - head/math/gmp/files Message-ID: <201702140940.v1E9eK3L056910@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Tue Feb 14 09:40:20 2017 New Revision: 434069 URL: https://svnweb.freebsd.org/changeset/ports/434069 Log: Zero memory used by mpn_lshift_com configure test, this should fix configure when malloc debugging is turned on (default on head) With help from: dim@ Reported by: pkg-fallout Added: head/math/gmp/files/ head/math/gmp/files/patch-configure (contents, props changed) Added: head/math/gmp/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/gmp/files/patch-configure Tue Feb 14 09:40:20 2017 (r434069) @@ -0,0 +1,20 @@ +--- configure.orig 2016-12-16 15:45:32 UTC ++++ configure +@@ -6776,7 +6776,7 @@ main () + long i; + for (i = 0; i < 88 + 1; i++) + a[i] = ~0L; +- r = malloc (10000 * sizeof (unsigned long)); ++ r = calloc (10000, sizeof(unsigned long)); + r2 = r; + for (i = 0; i < 528; i += 23) + { +@@ -8394,7 +8394,7 @@ main () + long i; + for (i = 0; i < 88 + 1; i++) + a[i] = ~0L; +- r = malloc (10000 * sizeof (unsigned long)); ++ r = calloc (10000, sizeof(unsigned long)); + r2 = r; + for (i = 0; i < 528; i += 23) + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702140940.v1E9eK3L056910>