diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-25 02:58:54 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-25 02:58:54 +0000 |
commit | 4f78e0a8f9c3a58c3c5566c6b1a0e5acceac8924 (patch) | |
tree | 41a5b3a40274b4ea228e9edf919dd2dfac1e4e80 /gcc/lto | |
parent | 7aeffc5f48192d1682ffeee467b1503038c4a545 (diff) | |
download | gcc-4f78e0a8f9c3a58c3c5566c6b1a0e5acceac8924.tar.gz |
* ggc.h (ggc_grow): New function.
* ggc-none.c (ggc_grow): New function.
* ggc-page.c (ggc_grow): Likewise.
* lto.c (read_cgraph_and_symbols): Grow ggc memory after streaming.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210908 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index f4a226b66b2..8fd483e338d 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,5 +1,9 @@ 2014-05-23 Jan Hubicka <hubicka@ucw.cz> + * lto.c (read_cgraph_and_symbols): Grow ggc memory after streaming. + +2014-05-23 Jan Hubicka <hubicka@ucw.cz> + * lto-symtab.c (lto_symtab_merge_symbols): Update code setting symtab pointer. * lto.c (compare_tree_sccs_1): Do not compare comdat groups. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index e5cdfc1cf3e..41d63f69d40 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -3001,6 +3001,10 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames) gimple_canonical_types = NULL; delete canonical_type_hash_cache; canonical_type_hash_cache = NULL; + + /* At this stage we know that majority of GGC memory is reachable. + Growing the limits prevents unnecesary invocation of GGC. */ + ggc_grow (); ggc_collect (); /* Set the hooks so that all of the ipa passes can read in their data. */ |