diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/parser.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8b4f1c0..03f26c9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2009-10-05 Jason Merrill <jason@redhat.com> + + * parser.c: Mark lambda_scope and lambda_count for PCH. + 2009-10-03 Jason Merrill <jason@redhat.com> PR c++/41553 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 22f7a89..8ab930c 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -6955,8 +6955,8 @@ cp_parser_trait_expr (cp_parser* parser, enum rid keyword) /* Lambdas that appear in variable initializer or default argument scope get that in their mangling, so we need to record it. We might as well use the count for function and namespace scopes as well. */ -static tree lambda_scope; -static int lambda_count; +static GTY(()) tree lambda_scope; +static GTY(()) int lambda_count; typedef struct GTY(()) tree_int { tree t; |