From: Richard Henderson Date: Wed, 15 Sep 1999 23:08:16 +0000 (-0700) Subject: * lex.c (mark_impl_file_chain): Follow the next chain. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01fba8d9baa7bd0681f85b98be27b41a1d53ca0e;p=platform%2Fupstream%2Fgcc.git * lex.c (mark_impl_file_chain): Follow the next chain. From-SVN: r29442 --- 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