* lex.c (mark_impl_file_chain): Follow the next chain.
authorRichard Henderson <rth@cygnus.com>
Wed, 15 Sep 1999 23:08:16 +0000 (16:08 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 15 Sep 1999 23:08:16 +0000 (16:08 -0700)
From-SVN: r29442

gcc/cp/ChangeLog
gcc/cp/lex.c

index 066b247..696f290 100644 (file)
@@ -1,3 +1,7 @@
+1999-09-15  Richard Henderson  <rth@cygnus.com>
+
+       * lex.c (mark_impl_file_chain): Follow the next chain.
+
 1999-09-15  Mark Mitchell  <mark@codesourcery.com>
 
        * decl2.c (build_expr_from_tree): Handle VA_ARG_EXPR.
index ae0d7e4..832af45 100644 (file)
@@ -1129,8 +1129,11 @@ mark_impl_file_chain (arg)
   struct impl_files *ifs;
 
   ifs = *(struct impl_files **) arg;
-  if (ifs)
-    ggc_mark_string (ifs->filename);
+  while (ifs)
+    {
+      ggc_mark_string (ifs->filename);
+      ifs = ifs->next;
+    }
 }
 
 /* Helper function to load global variables with interface