Support GGC finalizers with PCH.
authorJason Merrill <jason@redhat.com>
Wed, 18 Nov 2015 20:11:32 +0000 (15:11 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 18 Nov 2015 20:11:32 +0000 (15:11 -0500)
commit2a3047773e9cd7553e817486b735b6339ac16fee
treef50900d81b1f54d09522bff2e91eb373ca2c9544
parent231f6e0927960bb95e8670e536888902116dd293
Support GGC finalizers with PCH.

* ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
to be vecs of vecs.
(add_finalizer): Split out from ggc_internal_alloc.
(ggc_handle_finalizers): Run finalizers for the current depth.
(init_ggc, ggc_pch_read): Reserve space for finalizers.

From-SVN: r230564
gcc/ChangeLog
gcc/ggc-page.c