From 01fba8d9baa7bd0681f85b98be27b41a1d53ca0e Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 15 Sep 1999 16:08:16 -0700 Subject: [PATCH] * lex.c (mark_impl_file_chain): Follow the next chain. From-SVN: r29442 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/lex.c | 7 +++++-- 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 + + * lex.c (mark_impl_file_chain): Follow the next chain. + 1999-09-15 Mark Mitchell * 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 -- 2.7.4