Lines Matching refs:tree

35 #include "tree.h"
39 #include "cp-tree.h"
48 #include "tree-mudflap.h"
50 #include "tree-inline.h"
52 #include "tree-dump.h"
68 static void mark_vtable_entries (tree);
69 static bool maybe_emit_vtables (tree);
70 static bool acceptable_java_type (tree);
71 static tree start_objects (int, int);
72 static void finish_objects (int, int, tree);
73 static tree start_static_storage_duration_function (unsigned);
74 static void finish_static_storage_duration_function (tree);
76 static void do_static_initialization_or_destruction (tree, bool);
77 static void one_static_initialization_or_destruction (tree, tree, bool);
81 static tree prune_vars_needing_no_initialization (tree *);
82 static void write_out_vars (tree);
83 static void import_export_class (tree);
84 static tree get_guard_bits (tree);
85 static void determine_visibility_from_class (tree, tree);
90 static GTY(()) VEC(tree,gc) *pending_statics;
94 static GTY(()) VEC(tree,gc) *deferred_fns;
102 tree static_ctors;
103 tree static_dtors;
112 tree
113 build_memfn_type (tree fntype, tree ctype, cp_cv_quals quals)
115 tree raises;
137 tree
138 cp_build_parm_decl (tree name, tree type)
140 tree parm = build_decl (PARM_DECL, name, type);
151 tree
152 build_artificial_parm (tree name, tree type)
154 tree parm = cp_build_parm_decl (name, type);
176 maybe_retrofit_in_chrg (tree fn)
178 tree basetype, arg_types, parms, parm, fntype;
259 grokclassfn (tree ctype, tree function, enum overload_flags flags)
261 tree fn_name = DECL_NAME (function);
286 tree
287 grok_array_decl (tree array_expr, tree index_exp)
289 tree type;
290 tree expr;
291 tree orig_array_expr = array_expr;
292 tree orig_index_exp = index_exp;
318 tree p1, p2, i1, i2;
371 tree
372 delete_sanity (tree exp, tree size, bool doing_vec, int use_global_delete)
374 tree t, type;
438 check_member_template (tree tmpl)
440 tree decl;
466 acceptable_java_type (tree type)
478 tree args; int i;
504 check_java_method (tree method)
507 tree arg_types = TYPE_ARG_TYPES (TREE_TYPE (method));
508 tree ret_type = TREE_TYPE (TREE_TYPE (method));
525 tree type = TREE_VALUE (arg_types);
547 tree
548 check_classfn (tree ctype, tree function, tree template_parms)
552 tree pushed_scope;
590 VEC(tree,gc) *methods = CLASSTYPE_METHOD_VEC (ctype);
591 tree fndecls, fndecl = 0;
595 for (fndecls = VEC_index (tree, methods, ix);
598 tree p1, p2;
646 fndecls = VEC_index (tree, methods, ix);
654 if (VEC_length (tree, methods) > (size_t) ++ix)
656 fndecls = VEC_index (tree, methods, ix);
698 note_vague_linkage_fn (tree decl)
704 VEC_safe_push (tree, gc, deferred_fns, decl);
712 finish_static_data_member_decl (tree decl,
713 tree init, bool init_const_expr_p,
714 tree asmspec_tree,
724 VEC_safe_push (tree, gc, pending_statics, decl);
757 tree
760 tree init, bool init_const_expr_p,
761 tree asmspec_tree,
762 tree attrlist)
764 tree value;
814 tree type = TREE_TYPE (value);
932 tree
934 cp_decl_specifier_seq *declspecs, tree width)
936 tree value = grokdeclarator (declarator, declspecs, BITFIELD, 0, NULL);
998 cplus_decl_attributes (tree *decl, tree attributes, int flags)
1018 static tree
1019 build_anon_union_vars (tree type, tree object)
1021 tree main_decl = NULL_TREE;
1022 tree field;
1033 tree decl;
1034 tree ref;
1059 tree base;
1091 finish_anon_union (tree anon_union_decl)
1093 tree type;
1094 tree main_decl;
1146 tree
1147 coerce_new_type (tree type)
1150 tree args = TYPE_ARG_TYPES (type);
1184 tree
1185 coerce_delete_type (tree type)
1188 tree args = TYPE_ARG_TYPES (type);
1225 mark_vtable_entries (tree decl)
1227 tree fnaddr;
1233 tree fn;
1259 comdat_linkage (tree decl)
1314 maybe_make_one_only (tree decl)
1349 import_export_class (tree ctype)
1387 tree method = CLASSTYPE_KEY_METHOD (ctype);
1417 var_finalized_p (tree var)
1426 mark_needed (tree decl)
1442 decl_needed_p (tree decl)
1470 maybe_emit_vtables (tree ctype)
1472 tree vtbl;
1473 tree primary_vtbl;
1518 tree expr = store_init_value (vtbl, DECL_INITIAL (vtbl));
1548 static tree
1549 min_vis_r (tree *tp, int *walk_subtrees, void *data)
1573 type_visibility (tree type)
1584 constrain_visibility (tree decl, int visibility)
1611 constrain_visibility_for_template (tree decl, tree targs)
1616 tree args = INNERMOST_TEMPLATE_ARGS (targs);
1622 tree arg = TREE_VEC_ELT (args, i-1);
1661 determine_visibility (tree decl)
1663 tree class_type = NULL_TREE;
1720 tree fn = DECL_CONTEXT (decl);
1739 tree underlying_type = TREE_TYPE (DECL_NAME (decl));
1769 tree tinfo = (TREE_CODE (decl) == TYPE_DECL
1772 tree args = TI_ARGS (tinfo);
1777 tree pattern = DECL_TEMPLATE_RESULT (TI_TEMPLATE (tinfo));
1814 determine_visibility_from_class (tree decl, tree class_type)
1855 constrain_class_visibility (tree type)
1857 tree binfo;
1858 tree t;
1874 tree ftype = strip_array_types (TREE_TYPE (t));
1914 typeinfo_comdat (tree type)
1916 tree binfo, base_binfo;
1946 import_export_decl (tree decl)
1951 tree class_type = NULL_TREE;
2024 tree clone;
2108 tree type = TREE_TYPE (DECL_NAME (decl));
2166 tree ctype = DECL_CONTEXT (decl);
2213 tree
2214 build_cleanup (tree decl)
2216 tree temp;
2217 tree type = TREE_TYPE (decl);
2243 tree
2244 get_guard (tree decl)
2246 tree sname;
2247 tree guard;
2253 tree guard_type;
2279 static tree
2280 get_guard_bits (tree guard)
2301 tree
2302 get_guard_cond (tree guard)
2304 tree guard_value;
2327 tree
2328 set_guard (tree guard)
2330 tree guard_init;
2343 static tree
2346 tree body;
2347 tree fndecl;
2407 finish_objects (int method_type, int initp, tree body)
2409 tree fn;
2444 static GTY(()) tree initialize_p_decl;
2447 static GTY(()) tree priority_decl;
2450 static GTY(()) tree ssdf_decl;
2454 static GTY(()) VEC(tree,gc) *ssdf_decls;
2473 static tree
2476 tree parm_types;
2477 tree type;
2478 tree body;
2502 ssdf_decls = VEC_alloc (tree, gc, 32);
2518 VEC_safe_push (tree, gc, ssdf_decls, ssdf_decl);
2563 finish_static_storage_duration_function (tree body)
2617 one_static_initialization_or_destruction (tree decl, tree init, bool initp)
2619 tree guard_if_stmt = NULL_TREE;
2620 tree guard;
2660 tree guard_cond;
2737 do_static_initialization_or_destruction (tree vars, bool initp)
2739 tree node, init_if_stmt, cond;
2751 tree decl = TREE_VALUE (node);
2752 tree priority_if_stmt;
2808 static tree
2809 prune_vars_needing_no_initialization (tree *vars)
2811 tree *var = vars;
2812 tree result = NULL_TREE;
2816 tree t = *var;
2817 tree decl = TREE_VALUE (t);
2818 tree init = TREE_PURPOSE (t);
2861 write_out_vars (tree vars)
2863 tree v;
2867 tree var = TREE_VALUE (v);
2885 tree arguments;
2886 tree fndecl;
2887 tree body;
2916 for (i = 0; VEC_iterate (tree, ssdf_decls, i, fndecl); ++i)
2939 tree fns;
2987 only for language-specific tree nodes.
2991 tree
2992 cxx_callgraph_analyze_expr (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
2993 tree from ATTRIBUTE_UNUSED)
2995 tree t = *tp;
3012 tree vtbl;
3046 tree fndecl = node->decl;
3056 tree oid, nid, alias;
3141 tree vars;
3154 tree t;
3155 tree decl;
3180 tree next = TREE_CHAIN (t);
3201 for (i = VEC_length (tree, unemitted_tinfo_decls);
3202 VEC_iterate (tree, unemitted_tinfo_decls, --i, t);)
3206 VEC_unordered_remove (tree, unemitted_tinfo_decls, i);
3225 tree ssdf_body;
3276 for (i = 0; VEC_iterate (tree, deferred_fns, i, decl); ++i)
3349 for (i = 0; VEC_iterate (tree, pending_statics, i, decl); ++i)
3359 if (VEC_length (tree, pending_statics) != 0
3360 && wrapup_global_declarations (VEC_address (tree, pending_statics),
3361 VEC_length (tree, pending_statics)))
3374 tree decl;
3378 for (i = 0; VEC_iterate (tree, deferred_fns, i, decl); ++i)
3423 /* We're done with the splay-tree now. */
3440 if (VEC_length (tree, pending_statics) != 0)
3442 check_global_declarations (VEC_address (tree, pending_statics),
3443 VEC_length (tree, pending_statics));
3444 emit_debug_global_declarations (VEC_address (tree, pending_statics),
3445 VEC_length (tree, pending_statics));
3482 function to call in parse-tree form; it has not yet been
3486 tree
3487 build_offset_ref_call_from_tree (tree fn, tree args)
3489 tree orig_fn;
3490 tree orig_args;
3491 tree expr;
3492 tree object;
3526 tree object_addr = build_unary_op (ADDR_EXPR, object, 0);
3540 check_default_args (tree x)
3542 tree arg = TYPE_ARG_TYPES (TREE_TYPE (x));
3562 mark_used (tree decl)