https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92153
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Fri Oct 25 11:17:38 2019 New Revision: 277443 URL: https://gcc.gnu.org/viewcvs?rev=277443&root=gcc&view=rev Log: Backport ggc_trim Backport from mainline 2019-10-18 Jakub Jelinek <ja...@redhat.com> PR middle-end/92153 * ggc-page.c (release_pages): Read g->alloc_size before free rather than after it. 2019-10-11 Jan Hubicka <hubi...@ucw.cz> * 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-partition.c (add_symbol_to_partition_1): Update. (undo_parittion): Update. Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/ggc-none.c branches/gcc-9-branch/gcc/ggc-page.c branches/gcc-9-branch/gcc/ggc.h branches/gcc-9-branch/gcc/lto/ChangeLog branches/gcc-9-branch/gcc/lto/lto.c