aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-11 13:53:40 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-11 11:53:40 +0000
commite5207f1a6528877713109dc59b8db6c62a6eca28 (patch)
tree34f4f7fba3ec2a97f492c3aa15d13541aa5a3843 /gcc/lto
parent9d99596e3289766c392466eebb8b2f2d2f4f1bc1 (diff)
downloadgcc-e5207f1a6528877713109dc59b8db6c62a6eca28.zip
gcc-e5207f1a6528877713109dc59b8db6c62a6eca28.tar.gz
gcc-e5207f1a6528877713109dc59b8db6c62a6eca28.tar.bz2
ggc-page.c (release_pages): Output statistics when !quiet_flag.
* ggc-page.c (release_pages): Output statistics when !quiet_flag. (ggc_collect): Dump later to not interfere with release_page dump. (ggc_trim): New function. * ggc-none.c (ggc_trim): New. * ggc.h (ggc_trim): Declare. * lto.c (lto_wpa_write_files): Call ggc_trim. From-SVN: r276878
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 5fd02df..5ad79e8 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,5 +1,9 @@
2019-10-11 Jan Hubicka <hubicka@ucw.cz>
+ * lto.c (lto_wpa_write_files): Call ggc_trim.
+
+2019-10-11 Jan Hubicka <hubicka@ucw.cz>
+
* lto.c (lto_wpa_write_files): Prepare all bodies for streaming.
2019-10-10 Richard Biener <rguenther@suse.de>
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index f7452c2..5aa1438 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -311,6 +311,7 @@ lto_wpa_write_files (void)
if (gimple_has_body_p (node->decl))
lto_prepare_function_for_streaming (node);
+ ggc_trim ();
/* Generate a prefix for the LTRANS unit files. */
blen = strlen (ltrans_output_list);
temp_filename = (char *) xmalloc (blen + sizeof ("2147483648.o"));