diff options
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 74 |
1 files changed, 25 insertions, 49 deletions
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. */ |