aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2017-05-19 14:39:44 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2017-05-19 14:39:44 +0000
commitff50231797977a56a0d256db645f1e004c6acf00 (patch)
tree643c9cb26148aa80dea4f81997110158d3bee05f /gcc/cp/lambda.c
parent6f2f4050aacf448f1e63a844845a1d0e7cde59ca (diff)
downloadgcc-ff50231797977a56a0d256db645f1e004c6acf00.zip
gcc-ff50231797977a56a0d256db645f1e004c6acf00.tar.gz
gcc-ff50231797977a56a0d256db645f1e004c6acf00.tar.bz2
c-format.c (locus): Move out of function scope, add GTY attribute.
gcc/c-family: 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-format.c (locus): Move out of function scope, add GTY attribute. gcc/cp: 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de> * config-lang.in (gtfiles): Add c-family/c-format.c, except.c, init.c, lambda.c and friend.c. * class.c (dvirt_fn): Move out of function scope, add GTY attribute. * except.c (fn1-5, throw_fn, rethrow_fn, spec): Likewise. * init.c (fn): Likewise. * lambda.c (ptr_id, max_id): Likewise. * friend.c (global_friend): Add GTY attribute. From-SVN: r248290
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index 9d7701f..5587f60 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -427,13 +427,15 @@ build_capture_proxy (tree member)
return var;
}
+static GTY(()) tree ptr_id;
+static GTY(()) tree max_id;
+
/* Return a struct containing a pointer and a length for lambda capture of
an array of runtime length. */
static tree
vla_capture_type (tree array_type)
{
- static tree ptr_id, max_id;
tree type = xref_tag (record_type, make_anon_name (), ts_current, false);
xref_basetypes (type, NULL_TREE);
type = begin_class_definition (type);
@@ -1248,3 +1250,5 @@ is_lambda_ignored_entity (tree val)
return false;
}
+
+#include "gt-cp-lambda.h"