aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-09-15 16:08:16 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-09-15 16:08:16 -0700
commit01fba8d9baa7bd0681f85b98be27b41a1d53ca0e (patch)
treed27078711e8d3b2634ee300755a9c4e5cbc93c67
parent1a4450c78ff2b55ef5af7749ac56ef13b5c8dd0c (diff)
downloadgcc-01fba8d9baa7bd0681f85b98be27b41a1d53ca0e.zip
gcc-01fba8d9baa7bd0681f85b98be27b41a1d53ca0e.tar.gz
gcc-01fba8d9baa7bd0681f85b98be27b41a1d53ca0e.tar.bz2
* lex.c (mark_impl_file_chain): Follow the next chain.
From-SVN: r29442
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/lex.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 066b247..696f290 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index ae0d7e4..832af45 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -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