OSDN Git Service

2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
authorlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Sep 2007 00:44:59 +0000 (00:44 +0000)
committerlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Sep 2007 00:44:59 +0000 (00:44 +0000)
* 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

gcc/ChangeLog
gcc/ggc-page.c

index a29fbb2..a5d6a08 100644 (file)
@@ -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
index fbe2d2b..6b691ee 100644 (file)
@@ -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