From 6fb349540ce6464e9222d4c236a2c43a174d058b Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 4 Nov 2019 14:05:24 +0000 Subject: system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO. 2019-11-04 Richard Biener * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO. * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H. From-SVN: r277779 --- gcc/system.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index 56af544..3ef668f 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -730,6 +730,12 @@ extern int vsnprintf (char *, size_t, const char *, va_list); # include "unique-ptr.h" #endif +#ifdef INCLUDE_MALLOC_H +#ifdef HAVE_MALLINFO +#include +#endif +#endif + /* Redefine abort to report an internal error w/o coredump, and reporting the location of the error in the source file. */ extern void fancy_abort (const char *, int, const char *) -- cgit v1.1