Expose forcibly_ggc_collect and run it after all selftests
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 25 Oct 2016 16:46:54 +0000 (16:46 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 25 Oct 2016 16:46:54 +0000 (16:46 +0000)
commit6c3b5bf0725df869a12894682068b12dbf220568
tree9ed4ccf669a1c2f72ab19b46f518c6f399e4c206
parent96592eeda1f5cb381d91ef78dea3e2666bbdb7b5
Expose forcibly_ggc_collect and run it after all selftests

gcc/ChangeLog:
* ggc-tests.c (forcibly_ggc_collect): Rename to...
(selftest::forcibly_ggc_collect): ...this, and remove "static".
(test_basic_struct): Update for above renaming.
(test_length): Likewise.
(test_union): Likewise.
(test_finalization): Likewise.
(test_deletable_global): Likewise.
(test_inheritance): Likewise.
(test_chain_next): Likewise.
(test_user_struct): Likewise.
(test_tree_marking): Likewise.
* selftest-run-tests.c (selftest::run_tests): Call
selftest::forcibly_ggc_collect at the end of the selftests.
* selftest.h (selftest::forcibly_ggc_collect): New decl.

From-SVN: r241527
gcc/ChangeLog
gcc/ggc-tests.c
gcc/selftest-run-tests.c
gcc/selftest.h