aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-11-03 13:48:43 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-03 12:48:43 +0000
commitc9ef0409cd8f40ebca439ed446142fe3a2e727d3 (patch)
tree02b234403a8ac14394b85f5c47afa2fc22b9dc17 /gcc/ggc.h
parentda5c1bbe973db144cc1d297ad49b519a870ab0ba (diff)
downloadgcc-c9ef0409cd8f40ebca439ed446142fe3a2e727d3.zip
gcc-c9ef0409cd8f40ebca439ed446142fe3a2e727d3.tar.gz
gcc-c9ef0409cd8f40ebca439ed446142fe3a2e727d3.tar.bz2
config.in: Regenerate.
* config.in: Regenerate. * configure: Regenerate. * configure.ac: Check for mallinfo. * ggc-common.c: Include malloc.h if available; include options.h (report_heap_memory_use): New functoin. * ggc-page.c (ggc_grow): Do not print "start". * ggc.h (report_heap_memory_use): Declare. * pases.c (execute_one_pass): Report memory after IPA passes. (ipa_read_summaries_1): Likewise. (ipa_read_optimization_summaries_1): Likewise. * lto/lto-common.c (read_cgraph_and_symbols): Improve -Q reporting. * lto.c (lto_wpa_write_files): Likewise. From-SVN: r277753
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r--gcc/ggc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h
index d5735d0..c22fc37 100644
--- a/gcc/ggc.h
+++ b/gcc/ggc.h
@@ -278,6 +278,9 @@ extern void stringpool_statistics (void);
/* Heuristics. */
extern void init_ggc_heuristics (void);
+/* Report current heap memory use to stderr. */
+extern void report_heap_memory_use (void);
+
#define ggc_alloc_rtvec_sized(NELT) \
(rtvec_def *) ggc_internal_alloc (sizeof (struct rtvec_def) \
+ ((NELT) - 1) * sizeof (rtx)) \