lib/libgcov.c: Do not redefine `alloca`

This is already defined in <commonlib/helpers.h> and it gets included
implicitly by some other header. Fixes building with code coverage.

Change-Id: Id2dc6cc34b6f1d351d8e1b52d8cc4ada8666c673
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43974
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Angel Pons 2020-07-27 20:28:27 +02:00 committed by Patrick Georgi
parent 2a28c81614
commit 9a5dd7accf
1 changed files with 1 additions and 1 deletions

View File

@ -25,12 +25,12 @@ permissions described in the GCC Runtime Library Exception, version
#ifdef __COREBOOT__
#include <stdlib.h>
#include <string.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <assert.h>
typedef s32 pid_t;
#define gcc_assert(x) ASSERT(x)
#define fprintf(file, x...) printk(BIOS_ERR, x)
#define alloca(size) __builtin_alloca(size)
#include "gcov-glue.c"
/* Define MACROs to be used by coreboot compilation. */