summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authorlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-02 00:44:59 +0000
committerlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-02 00:44:59 +0000
commit3fff4d99c1111e87b16507ced447d46b617bf39c (patch)
tree28cfdf3929c399ba672480d596726874131593f1 /gcc/ggc-page.c
parentd5a1b40f8522e39b948609262f5aefb7e455f697 (diff)
downloadgcc-3fff4d99c1111e87b16507ced447d46b617bf39c.tar.gz
2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
* ggc-page.c (ggc_pch_read): Call validate_free_objects. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index fbe2d2b53ff..6b691eec759 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -2243,6 +2243,9 @@ ggc_pch_read (FILE *f, void *addr)
#ifdef ENABLE_GC_CHECKING
poison_pages ();
#endif
+ /* Since we free all the allocated objects, the free list becomes
+ useless. Validate it now, which will also clear it. */
+ validate_free_objects();
/* No object read from a PCH file should ever be freed. So, set the
context depth to 1, and set the depth of all the currently-allocated