aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl-function.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-08-17 21:15:46 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-08-18 13:25:29 +0200
commit602fca427df6c5f7452677cfcdd16a5b9a3ca86a (patch)
treea6de70912168e67f7281933cbd1ad8c050039fc9 /gcc/read-rtl-function.c
parent76bb3c50dd43a5f87d4f949cf0d0979144562e6c (diff)
downloadgcc-602fca427df6c5f7452677cfcdd16a5b9a3ca86a.zip
gcc-602fca427df6c5f7452677cfcdd16a5b9a3ca86a.tar.gz
gcc-602fca427df6c5f7452677cfcdd16a5b9a3ca86a.tar.bz2
Turn 'bool force_collect' parameter to 'ggc_collect' into an 'enum ggc_collect mode'
... to make the meaning more explicit to the reader of the code. Follow-up to recent commit 0edf2e81bb02cba43b649b3f6e7258b68a779ac0 "Turn global 'ggc_force_collect' variable into 'force_collect' parameter to 'ggc_collect'". gcc/ * ggc.h (enum ggc_collect): New. (ggc_collect): Use it. * ggc-page.c: Adjust. * ggc-common.c: Likewise. * ggc-tests.c: Likewise. * read-rtl-function.c: Likewise. * selftest-run-tests.c: Likewise. * doc/gty.texi (Invoking the garbage collector): Likewise. Suggested-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/read-rtl-function.c')
-rw-r--r--gcc/read-rtl-function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/read-rtl-function.c b/gcc/read-rtl-function.c
index 0badfb9..941d1e1 100644
--- a/gcc/read-rtl-function.c
+++ b/gcc/read-rtl-function.c
@@ -1861,7 +1861,7 @@ test_loading_labels ()
/* Ensure that label names read from a dump are GC-managed
and are found through the insn. */
- ggc_collect (true);
+ ggc_collect (GGC_COLLECT_FORCE);
ASSERT_TRUE (ggc_marked_p (insn_200));
ASSERT_TRUE (ggc_marked_p (LABEL_NAME (insn_200)));
}