summaryrefslogtreecommitdiff
path: root/gcc/lto/lto.c
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/lto/lto.c
parentda5c1bbe973db144cc1d297ad49b519a870ab0ba (diff)
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/lto/lto.c')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 27ea341e04c..86d58010e0e 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -312,6 +312,8 @@ lto_wpa_write_files (void)
lto_prepare_function_for_streaming (node);
ggc_trim ();
+ report_heap_memory_use ();
+
/* Generate a prefix for the LTRANS unit files. */
blen = strlen (ltrans_output_list);
temp_filename = (char *) xmalloc (blen + sizeof ("2147483648.o"));