diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-08-17 10:47:02 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-08-17 21:00:10 +0200 |
commit | 0edf2e81bb02cba43b649b3f6e7258b68a779ac0 (patch) | |
tree | 5b18e566cc8b9c254b6e1ef74f90575fe49cca0a /gcc/selftest.h | |
parent | a42467bdb70650cd2f421e67b6c3418f74feaec2 (diff) | |
download | gcc-0edf2e81bb02cba43b649b3f6e7258b68a779ac0.zip gcc-0edf2e81bb02cba43b649b3f6e7258b68a779ac0.tar.gz gcc-0edf2e81bb02cba43b649b3f6e7258b68a779ac0.tar.bz2 |
Turn global 'ggc_force_collect' variable into 'force_collect' parameter to 'ggc_collect'
This simplifies the interface and gets us rid of a global variable.
No change in behavior.
Clean-up for 2004-09-02 CVS commit (Subversion r86974,
Git commit 0772402279c0161fe41784911b52c77e12803c42)
"Better memory statistics, take 2".
gcc/
* ggc.h (ggc_collect): Add 'force_collect' parameter.
* ggc-page.c (ggc_collect): Use that one instead of global
'ggc_force_collect'. Adjust all users.
* doc/gty.texi (Invoking the garbage collector): Update.
* ggc-internal.h (ggc_force_collect): Remove.
* ggc-common.c (ggc_force_collect): Likewise.
* selftest.h (forcibly_ggc_collect): Remove.
* ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
* read-rtl-function.c (test_loading_labels): Adjust.
* selftest-run-tests.c (run_tests): Likewise.
Diffstat (limited to 'gcc/selftest.h')
-rw-r--r-- | gcc/selftest.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/selftest.h b/gcc/selftest.h index 80459d6..58d8d38 100644 --- a/gcc/selftest.h +++ b/gcc/selftest.h @@ -190,11 +190,6 @@ for_each_line_table_case (void (*testcase) (const line_table_case &)); extern char *read_file (const location &loc, const char *path); -/* A helper function for writing tests that interact with the - garbage collector. */ - -extern void forcibly_ggc_collect (); - /* Convert a path relative to SRCDIR/gcc/testsuite/selftests to a real path (either absolute, or relative to pwd). The result should be freed by the caller. */ |