From d1b382088a11a55c13fe0a9769a3c46a72836dd1 Mon Sep 17 00:00:00 2001 From: Taras Glek Date: Wed, 22 Apr 2009 18:29:36 +0000 Subject: hashtab.h: Update GTY annotations to new syntax 2009-04-21 Taras Glek * include/hashtab.h: Update GTY annotations to new syntax * include/splay-tree.h: Likewise gcc/ChangeLog 2009-04-21 Taras Glek * alias.c: Update GTY annotations to new syntax * basic-block.h: Likewise * bitmap.h: Likewise * c-common.h: Likewise * c-decl.c: Likewise * c-parser.c: Likewise * c-pragma.c: Likewise * c-tree.h: Likewise * cfgloop.h: Likewise * cgraph.h: Likewise * config/alpha/alpha.c: Likewise * config/arm/arm.h: Likewise * config/avr/avr.h: Likewise * config/bfin/bfin.c: Likewise * config/cris/cris.c: Likewise * config/darwin.c: Likewise * config/frv/frv.c: Likewise * config/i386/i386.c: Likewise * config/i386/i386.h: Likewise * config/i386/winnt.c: Likewise * config/ia64/ia64.h: Likewise * config/iq2000/iq2000.c: Likewise * config/mips/mips.c: Likewise * config/mmix/mmix.h: Likewise * config/pa/pa.c: Likewise * config/pa/pa.h: Likewise * config/rs6000/rs6000.c: Likewise * config/s390/s390.c: Likewise * config/sparc/sparc.c: Likewise * config/xtensa/xtensa.c: Likewise * cselib.h: Likewise * dbxout.c: Likewise * dwarf2out.c: Likewise * except.c: Likewise * except.h: Likewise * fixed-value.h: Likewise * function.c: Likewise * function.h: Likewise * gimple.h: Likewise * integrate.c: Likewise * optabs.c: Likewise * output.h: Likewise * real.h: Likewise * rtl.h: Likewise * stringpool.c: Likewise * tree-data-ref.c: Likewise * tree-flow.h: Likewise * tree-scalar-evolution.c: Likewise * tree-ssa-address.c: Likewise * tree-ssa-alias.h: Likewise * tree-ssa-operands.h: Likewise * tree.c: Likewise * tree.h: Likewise * varasm.c: Likewise * varray.h: Likewise * vec.h: Likewise * coretypes.h: Do not define GTY macro if it is already defined * doc/gty.texi: Update GTY documentation to new syntax * gengtype-lex.l: Enforce attribute-like syntax for GTY annotations on structs * gengtype-parse.c: Likewise gcc/ada/ChangeLog 2009-04-21 Taras Glek * gcc-interface/ada-tree.h: Update GTY annotations to new syntax * gcc-interface/trans.c: Likewise * gcc-interface/utils.c: Likewise gcc/cp/ChangeLog 2009-04-21 Taras Glek * cp-tree.h: Update GTY annotations to new syntax * decl.c: Likewise * mangle.c: Likewise * name-lookup.c: Likewise * name-lookup.h: Likewise * parser.c: Likewise * pt.c: Likewise * rtti.c: Likewise * semantics.c: Likewise * typeck2.c: Likewise gcc/fortran/ChangeLog 2009-04-21 Taras Glek * f95-lang.c: Update GTY annotations to new syntax * trans-intrinsic.c: Likewise * trans-io.c: Likewise * trans.h: Likewise gcc/java/ChangeLog 2009-04-21 Taras Glek * builtins.c: Update GTY annotations to new syntax * decl.c: Likewise * java-tree.h: Likewise * jcf.h: Likewise * lang.c: Likewise gcc/objc/ChangeLog 2009-04-21 Taras Glek * objc-act.c: Update GTY annotations to new syntax * objc-act.h: Likewise libcpp/ChangeLog 2009-04-21 Taras Glek * include/cpp-id-data.h: Update GTY annotations to new syntax * include/cpplib.h: Likewise * include/line-map.h: Likewise * include/symtab.h: Likewise From-SVN: r146607 --- gcc/cp/cp-tree.h | 74 +++++++++++++++++++------------------------------------- 1 file changed, 25 insertions(+), 49 deletions(-) (limited to 'gcc/cp/cp-tree.h') diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index d66e0de..a4fc7c0 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -219,8 +219,7 @@ framework extensions, you must include this file before toplev.h, not after. /* Language-dependent contents of an identifier. */ -struct lang_identifier GTY(()) -{ +struct GTY(()) lang_identifier { struct c_common_identifier c_common; cxx_binding *namespace_bindings; cxx_binding *bindings; @@ -237,8 +236,7 @@ struct lang_identifier GTY(()) #define LANG_IDENTIFIER_CAST(NODE) \ ((struct lang_identifier*)IDENTIFIER_NODE_CHECK (NODE)) -struct template_parm_index_s GTY(()) -{ +struct GTY(()) template_parm_index_s { struct tree_common common; int index; int level; @@ -247,8 +245,7 @@ struct template_parm_index_s GTY(()) }; typedef struct template_parm_index_s template_parm_index; -struct ptrmem_cst GTY(()) -{ +struct GTY(()) ptrmem_cst { struct tree_common common; /* This isn't used, but the middle-end expects all constants to have this field. */ @@ -331,8 +328,7 @@ typedef struct ptrmem_cst * ptrmem_cst_t; is not important for this node. */ #define OVL_USED(NODE) TREE_USED (NODE) -struct tree_overload GTY(()) -{ +struct GTY(()) tree_overload { struct tree_common common; tree function; }; @@ -363,8 +359,7 @@ struct tree_overload GTY(()) #define BASELINK_QUALIFIED_P(NODE) \ TREE_LANG_FLAG_0 (BASELINK_CHECK (NODE)) -struct tree_baselink GTY(()) -{ +struct GTY(()) tree_baselink { struct tree_common common; tree binfo; tree functions; @@ -453,8 +448,7 @@ typedef enum cp_id_kind #define DEFARG_INSTANTIATIONS(NODE) \ (((struct tree_default_arg *)DEFAULT_ARG_CHECK (NODE))->instantiations) -struct tree_default_arg GTY (()) -{ +struct GTY (()) tree_default_arg { struct tree_common common; struct cp_token_cache *tokens; VEC(tree,gc) *instantiations; @@ -475,16 +469,14 @@ struct tree_default_arg GTY (()) #define STATIC_ASSERT_SOURCE_LOCATION(NODE) \ (((struct tree_static_assert *)STATIC_ASSERT_CHECK (NODE))->location) -struct tree_static_assert GTY (()) -{ +struct GTY (()) tree_static_assert { struct tree_common common; tree condition; tree message; location_t location; }; -struct tree_argument_pack_select GTY (()) -{ +struct GTY (()) tree_argument_pack_select { struct tree_common common; tree argument_pack; int index; @@ -524,8 +516,7 @@ typedef enum cp_trait_kind #define TRAIT_EXPR_KIND(NODE) \ (((struct tree_trait_expr *)TRAIT_EXPR_CHECK (NODE))->kind) -struct tree_trait_expr GTY (()) -{ +struct GTY (()) tree_trait_expr { struct tree_common common; tree type1; tree type2; @@ -549,9 +540,8 @@ enum cp_tree_node_structure_enum { }; /* The resulting tree type. */ -union lang_tree_node GTY((desc ("cp_tree_node_structure (&%h)"), - chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)"))) -{ +union GTY((desc ("cp_tree_node_structure (&%h)"), + chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)"))) lang_tree_node { union tree_node GTY ((tag ("TS_CP_GENERIC"), desc ("tree_node_structure (&%h)"))) generic; struct template_parm_index_s GTY ((tag ("TS_CP_TPI"))) tpi; @@ -747,8 +737,7 @@ extern GTY(()) tree cp_global_trees[CPTI_MAX]; /* Global state. */ -struct saved_scope GTY(()) -{ +struct GTY(()) saved_scope { VEC(cxx_saved_binding,gc) *old_bindings; tree old_namespace; tree decl_ns_list; @@ -826,8 +815,7 @@ struct saved_scope GTY(()) extern GTY(()) struct saved_scope *scope_chain; -struct cxx_int_tree_map GTY(()) -{ +struct GTY(()) cxx_int_tree_map { unsigned int uid; tree to; }; @@ -837,8 +825,7 @@ extern int cxx_int_tree_map_eq (const void *, const void *); /* Global state pertinent to the current function. */ -struct language_function GTY(()) -{ +struct GTY(()) language_function { struct c_language_function base; tree x_cdtor_label; @@ -1061,8 +1048,7 @@ enum languages { lang_c, lang_cplusplus, lang_java }; #define CLASSTYPE_VISIBILITY_SPECIFIED(TYPE) \ DECL_VISIBILITY_SPECIFIED (TYPE_NAME (TYPE)) -typedef struct tree_pair_s GTY (()) -{ +typedef struct GTY (()) tree_pair_s { tree purpose; tree value; } tree_pair_s; @@ -1073,8 +1059,7 @@ DEF_VEC_ALLOC_O (tree_pair_s,gc); /* This is a few header flags for 'struct lang_type'. Actually, all but the first are used only for lang_type_class; they are put in this structure to save space. */ -struct lang_type_header GTY(()) -{ +struct GTY(()) lang_type_header { BOOL_BITFIELD is_lang_type_class : 1; BOOL_BITFIELD has_type_conversion : 1; @@ -1100,8 +1085,7 @@ struct lang_type_header GTY(()) many (i.e., thousands) of classes can easily be generated. Therefore, we should endeavor to keep the size of this structure to a minimum. */ -struct lang_type_class GTY(()) -{ +struct GTY(()) lang_type_class { struct lang_type_header h; unsigned char align; @@ -1176,14 +1160,12 @@ struct lang_type_class GTY(()) tree objc_info; }; -struct lang_type_ptrmem GTY(()) -{ +struct GTY(()) lang_type_ptrmem { struct lang_type_header h; tree record; }; -struct lang_type GTY(()) -{ +struct GTY(()) lang_type { union lang_type_u { struct lang_type_header GTY((skip (""))) h; @@ -1593,8 +1575,7 @@ struct lang_type GTY(()) || TREE_CODE (NODE) == CONST_DECL \ || TREE_CODE (NODE) == USING_DECL)) -struct lang_decl_flags GTY(()) -{ +struct GTY(()) lang_decl_flags { ENUM_BITFIELD(languages) language : 4; unsigned global_ctor_p : 1; unsigned global_dtor_p : 1; @@ -1653,8 +1634,7 @@ struct lang_decl_flags GTY(()) /* sorted_fields is sorted based on a pointer, so we need to be able to resort it if pointers get rearranged. */ -struct lang_decl GTY(()) -{ +struct GTY(()) lang_decl { struct lang_decl_flags decl_flags; union lang_decl_u4 @@ -2517,8 +2497,7 @@ extern void decl_shadowed_for_var_insert (tree, tree); /* Abstract iterators for AGGR_INIT_EXPRs. */ /* Structure containing iterator state. */ -typedef struct aggr_init_expr_arg_iterator_d GTY (()) -{ +typedef struct GTY (()) aggr_init_expr_arg_iterator_d { tree t; /* the aggr_init_expr */ int n; /* argument count */ int i; /* next argument index */ @@ -3970,8 +3949,7 @@ extern void init_reswords (void); opname_tab[(int) MINUS_EXPR] == "-". */ extern const char **opname_tab, **assignop_tab; -typedef struct operator_name_info_t GTY(()) -{ +typedef struct GTY(()) operator_name_info_t { /* The IDENTIFIER_NODE for the operator. */ tree identifier; /* The name of the operator. */ @@ -4160,8 +4138,7 @@ struct cp_declarator { }; /* A level of template instantiation. */ -struct tinst_level GTY(()) -{ +struct GTY(()) tinst_level { /* The immediately deeper level in the chain. */ struct tinst_level *next; @@ -4694,8 +4671,7 @@ extern int shared_member_p (tree); /* The representation of a deferred access check. */ -typedef struct deferred_access_check GTY(()) -{ +typedef struct GTY(()) deferred_access_check { /* The base class in which the declaration is referenced. */ tree binfo; /* The declaration whose access must be checked. */ -- cgit v1.1