aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-common.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2021-09-13 19:49:49 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2021-09-13 19:49:49 +0200
commitb18a97e5dd0935e1c4a626c230f21457d0aad3d5 (patch)
treec1818f41af6fe780deafb6cd6a183f32085fe654 /gcc/ggc-common.c
parente76a53644c9d70e998c0d050e9a456af388c6b61 (diff)
downloadgcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.zip
gcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.tar.gz
gcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.tar.bz2
Merged current trunk to branch.
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r--gcc/ggc-common.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index 571c50e..32ba5be 100644
--- a/gcc/ggc-common.c
+++ b/gcc/ggc-common.c
@@ -1,5 +1,5 @@
/* Simple garbage collection for the GNU compiler.
- Copyright (C) 1999-2020 Free Software Foundation, Inc.
+ Copyright (C) 1999-2021 Free Software Foundation, Inc.
This file is part of GCC.
@@ -31,9 +31,6 @@ along with GCC; see the file COPYING3. If not see
#include "plugin.h"
#include "options.h"
-/* When set, ggc_collect will do collection. */
-bool ggc_force_collect;
-
/* When true, protect the contents of the identifier hash table. */
bool ggc_protect_identifiers = true;
@@ -965,12 +962,9 @@ dump_ggc_loc_statistics ()
if (! GATHER_STATISTICS)
return;
- ggc_force_collect = true;
- ggc_collect ();
+ ggc_collect (GGC_COLLECT_FORCE);
ggc_mem_desc.dump (GGC_ORIGIN);
-
- ggc_force_collect = false;
}
/* Record ALLOCATED and OVERHEAD bytes to descriptor NAME:LINE (FUNCTION). */