mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: toolchain: fix compilation of GMP on FreeBSD
Built on FreeBSD -CURRENT Obtained from FreeBSD:bbedec80e3
BUG=none BRANCH=none TEST=none Change-Id: I42ee886299c2383abc05b44bb0c2f3190a0483c9 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id:171d1a5979
Original-Change-Id: Ic6b6db8e3a9d86a30c50a09d58566846446031ea Original-Signed-off-by: Idwer Vollering <vidwer@gmail.com> Original-Reviewed-on: https://review.coreboot.org/18675 Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com> Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://chromium-review.googlesource.com/452462
This commit is contained in:
parent
94e0c6ca37
commit
dde586de6c
1 changed files with 20 additions and 0 deletions
20
util/crossgcc/patches/gmp-6.1.2_freebsd-configure.patch
Normal file
20
util/crossgcc/patches/gmp-6.1.2_freebsd-configure.patch
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- gmp-6.1.2.orig/configure 2016-12-16 16:45:32.000000000 +0100
|
||||||
|
+++ gmp-6.1.2/configure 2017-03-08 14:26:11.194245000 +0100
|
||||||
|
@@ -6776,7 +6776,7 @@
|
||||||
|
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 @@
|
||||||
|
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)
|
||||||
|
{
|
Loading…
Add table
Reference in a new issue