From 6ecd23394a6cdc5de261943e480845ac4900c401 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 18 May 2017 16:15:59 +0000 Subject: [PATCH] c-format.c (local_tree_type_node): Add GTY attribute. gcc/c-family: 2017-05-18 Bernd Edlinger * c-format.c (local_tree_type_node): Add GTY attribute. gcc/c: 2017-05-18 Bernd Edlinger * config-lang.in (gtfiles): Add c-family/c-format.c. From-SVN: r248242 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c-format.c | 4 +++- gcc/c/ChangeLog | 4 ++++ gcc/c/config-lang.in | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 98b4b4e9ff9..8287876d38e 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2017-05-18 Bernd Edlinger + + * c-format.c (local_tree_type_node): Add GTY attribute. + 2017-05-18 Marek Polacek * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0. diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c index 2dba0629f5f..f3a02ed6e16 100644 --- a/gcc/c-family/c-format.c +++ b/gcc/c-family/c-format.c @@ -54,7 +54,7 @@ struct function_format_info }; /* Initialized in init_dynamic_diag_info. */ -static tree local_tree_type_node; +static GTY(()) tree local_tree_type_node; static bool decode_format_attr (tree, function_format_info *, int); static int decode_format_type (const char *); @@ -4211,3 +4211,5 @@ c_format_c_tests () } // namespace selftest #endif /* CHECKING_P */ + +#include "gt-c-family-c-format.h" diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index f747e08e66e..79643cc1b3b 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,7 @@ +2017-05-18 Bernd Edlinger + + * config-lang.in (gtfiles): Add c-family/c-format.c. + 2017-05-18 Nathan Sidwell * c-decl.c (pushdecl_top_level): Delete unused function. diff --git a/gcc/c/config-lang.in b/gcc/c/config-lang.in index 0a4c888dd0b..40d28b9d21a 100644 --- a/gcc/c/config-lang.in +++ b/gcc/c/config-lang.in @@ -29,4 +29,4 @@ compilers="cc1\$(exeext)" target_libs= -gtfiles="\$(srcdir)/c/c-lang.c \$(srcdir)/c/c-tree.h \$(srcdir)/c/c-decl.c \$(srcdir)/c-family/c-common.c \$(srcdir)/c-family/c-common.h \$(srcdir)/c-family/c-objc.h \$(srcdir)/c-family/c-cppbuiltin.c \$(srcdir)/c-family/c-pragma.h \$(srcdir)/c-family/c-pragma.c \$(srcdir)/c/c-objc-common.c \$(srcdir)/c/c-parser.h \$(srcdir)/c/c-parser.c \$(srcdir)/c/c-lang.h" +gtfiles="\$(srcdir)/c/c-lang.c \$(srcdir)/c/c-tree.h \$(srcdir)/c/c-decl.c \$(srcdir)/c-family/c-common.c \$(srcdir)/c-family/c-common.h \$(srcdir)/c-family/c-objc.h \$(srcdir)/c-family/c-cppbuiltin.c \$(srcdir)/c-family/c-pragma.h \$(srcdir)/c-family/c-pragma.c \$(srcdir)/c-family/c-format.c \$(srcdir)/c/c-objc-common.c \$(srcdir)/c/c-parser.h \$(srcdir)/c/c-parser.c \$(srcdir)/c/c-lang.h" -- 2.30.2