summaryrefslogtreecommitdiff
path: root/gcc/c-family
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/c-family
parent6f2f4050aacf448f1e63a844845a1d0e7cde59ca (diff)
downloadgcc-ff50231797977a56a0d256db645f1e004c6acf00.tar.gz
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/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-format.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 5a842bd74d7..1db3c331948 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * c-format.c (locus): Move out of function scope,
+ add GTY attribute.
+
2017-05-19 Nathan Sidwell <nathan@acm.org>
* c-opts.c (class_dump_file, class_dump_flags): Delete.
diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c
index f3a02ed6e16..a561d0e30e4 100644
--- a/gcc/c-family/c-format.c
+++ b/gcc/c-family/c-format.c
@@ -55,6 +55,7 @@ struct function_format_info
/* Initialized in init_dynamic_diag_info. */
static GTY(()) tree local_tree_type_node;
+static GTY(()) tree locus;
static bool decode_format_attr (tree, function_format_info *, int);
static int decode_format_type (const char *);
@@ -3734,8 +3735,6 @@ init_dynamic_asm_fprintf_info (void)
static void
init_dynamic_gfc_info (void)
{
- static tree locus;
-
if (!locus)
{
static format_char_info *gfc_fci;