diff options
author | Laurynas Biveinis <laurynas.biveinis@gmail.com> | 2007-09-02 00:44:59 +0000 |
---|---|---|
committer | Laurynas Biveinis <lauras@gcc.gnu.org> | 2007-09-02 00:44:59 +0000 |
commit | ead8827dd68112fe99b434d62614ab9aaec7f9de (patch) | |
tree | 28cfdf3929c399ba672480d596726874131593f1 /gcc | |
parent | 1c19c4787ef4b0a6ca83e8c3872cb82e212e693c (diff) | |
download | gcc-ead8827dd68112fe99b434d62614ab9aaec7f9de.zip gcc-ead8827dd68112fe99b434d62614ab9aaec7f9de.tar.gz gcc-ead8827dd68112fe99b434d62614ab9aaec7f9de.tar.bz2 |
ggc-page.c (ggc_pch_read): Call validate_free_objects.
2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
* ggc-page.c (ggc_pch_read): Call validate_free_objects.
From-SVN: r128023
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ggc-page.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a29fbb2..a5d6a08 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com> + + * ggc-page.c (ggc_pch_read): Call validate_free_objects. + 2007-09-02 Joseph Myers <joseph@codesourcery.com> PR middle-end/33272 diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index fbe2d2b..6b691ee 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 |