aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-10-05 17:36:38 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-10-05 17:36:38 -0400
commitcbabbc34a7e01d21381b565a63f65c59ca1f6e6f (patch)
tree3cb36df243146170afd60fe54864c32ff2b0e5ba
parent123651cdb6e09bc299f66c5179fc144503a0044f (diff)
downloadgcc-cbabbc34a7e01d21381b565a63f65c59ca1f6e6f.zip
gcc-cbabbc34a7e01d21381b565a63f65c59ca1f6e6f.tar.gz
gcc-cbabbc34a7e01d21381b565a63f65c59ca1f6e6f.tar.bz2
* parser.c: Mark lambda_scope and lambda_count for PCH.
From-SVN: r152474
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/parser.c4
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;