diff options
author | Richard Biener <rguenther@suse.de> | 2019-11-04 14:05:24 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-11-04 14:05:24 +0000 |
commit | 6fb349540ce6464e9222d4c236a2c43a174d058b (patch) | |
tree | 3e98900b6ea727f70412a326d7bbd6f069a1160d /gcc/ggc-common.c | |
parent | 253f29f1adefd9bc9808addd4498e6b9cea7827b (diff) | |
download | gcc-6fb349540ce6464e9222d4c236a2c43a174d058b.zip gcc-6fb349540ce6464e9222d4c236a2c43a174d058b.tar.gz gcc-6fb349540ce6464e9222d4c236a2c43a174d058b.tar.bz2 |
system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2019-11-04 Richard Biener <rguenther@suse.de>
* 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
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 0841a0a..a7edb15 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -21,10 +21,8 @@ along with GCC; see the file COPYING3. If not see any particular GC implementation. */ #include "config.h" +#define INCLUDE_MALLOC_H #include "system.h" -#ifdef HAVE_MALLINFO -#include <malloc.h> -#endif #include "coretypes.h" #include "timevar.h" #include "diagnostic-core.h" |