Home
last modified time | relevance | path

Searched refs:decl (Results 1 – 25 of 673) sorted by relevance

12345678910>>...27

/netbsd/src/external/gpl3/gcc/dist/libiberty/
Dd-demangle.c367 dlang_symbol_backref (string *decl, const char *mangled, in dlang_symbol_backref() argument
387 backref = dlang_lname (decl, backref, len); in dlang_symbol_backref()
398 dlang_type_backref (string *decl, const char *mangled, struct dlang_info *info, in dlang_type_backref() argument
422 backref = dlang_function_type (decl, backref, info); in dlang_type_backref()
424 backref = dlang_type (decl, backref, info); in dlang_type_backref()
462 dlang_call_convention (string *decl, const char *mangled) in dlang_call_convention() argument
474 string_append (decl, "extern(C) "); in dlang_call_convention()
478 string_append (decl, "extern(Windows) "); in dlang_call_convention()
482 string_append (decl, "extern(Pascal) "); in dlang_call_convention()
486 string_append (decl, "extern(C++) "); in dlang_call_convention()
[all …]
/netbsd/src/external/gpl3/binutils/dist/libiberty/
Dd-demangle.c367 dlang_symbol_backref (string *decl, const char *mangled, in dlang_symbol_backref() argument
387 backref = dlang_lname (decl, backref, len); in dlang_symbol_backref()
398 dlang_type_backref (string *decl, const char *mangled, struct dlang_info *info, in dlang_type_backref() argument
422 backref = dlang_function_type (decl, backref, info); in dlang_type_backref()
424 backref = dlang_type (decl, backref, info); in dlang_type_backref()
462 dlang_call_convention (string *decl, const char *mangled) in dlang_call_convention() argument
474 string_append (decl, "extern(C) "); in dlang_call_convention()
478 string_append (decl, "extern(Windows) "); in dlang_call_convention()
482 string_append (decl, "extern(Pascal) "); in dlang_call_convention()
486 string_append (decl, "extern(C++) "); in dlang_call_convention()
[all …]
/netbsd/src/external/gpl3/gdb/dist/libiberty/
Dd-demangle.c367 dlang_symbol_backref (string *decl, const char *mangled, in dlang_symbol_backref() argument
387 backref = dlang_lname (decl, backref, len); in dlang_symbol_backref()
398 dlang_type_backref (string *decl, const char *mangled, struct dlang_info *info, in dlang_type_backref() argument
422 backref = dlang_function_type (decl, backref, info); in dlang_type_backref()
424 backref = dlang_type (decl, backref, info); in dlang_type_backref()
462 dlang_call_convention (string *decl, const char *mangled) in dlang_call_convention() argument
474 string_append (decl, "extern(C) "); in dlang_call_convention()
478 string_append (decl, "extern(Windows) "); in dlang_call_convention()
482 string_append (decl, "extern(Pascal) "); in dlang_call_convention()
486 string_append (decl, "extern(C++) "); in dlang_call_convention()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/lto/
Dlto-symtab.cc56 (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->decl))))); in lto_cgraph_replace_node()
70 && DECL_COMDAT (node->decl) && DECL_COMDAT (prevailing_node->decl)) in lto_cgraph_replace_node()
73 && DECL_DECLARED_INLINE_P (node->decl) in lto_cgraph_replace_node()
74 && DECL_EXTERNAL (node->decl) in lto_cgraph_replace_node()
82 = types_compatible_p (TREE_TYPE (TREE_TYPE (prevailing_node->decl)), in lto_cgraph_replace_node()
83 TREE_TYPE (TREE_TYPE (node->decl))); in lto_cgraph_replace_node()
102 if (node->decl != prevailing_node->decl) in lto_cgraph_replace_node()
126 if (DECL_INITIAL (vnode->decl) in lto_varpool_replace_node()
127 && vnode->decl != prevailing_node->decl) in lto_varpool_replace_node()
128 DECL_INITIAL (vnode->decl) = error_mark_node; in lto_varpool_replace_node()
[all …]
Dlto-symtab.h22 extern tree lto_symtab_prevailing_decl (tree decl);
23 extern tree lto_symtab_prevailing_virtual_decl (tree decl);
32 lto_symtab_prevail_decl (tree prevailing, tree decl) in lto_symtab_prevail_decl() argument
34 gcc_checking_assert (! DECL_LANG_FLAG_0 (decl)); in lto_symtab_prevail_decl()
35 gcc_assert (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl)); in lto_symtab_prevail_decl()
36 DECL_CHAIN (decl) = prevailing; in lto_symtab_prevail_decl()
37 DECL_LANG_FLAG_0 (decl) = 1; in lto_symtab_prevail_decl()
43 lto_symtab_prevailing_decl (tree decl) in lto_symtab_prevailing_decl() argument
45 if (DECL_LANG_FLAG_0 (decl)) in lto_symtab_prevailing_decl()
46 return DECL_CHAIN (decl); in lto_symtab_prevailing_decl()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
Ddecl2.cc111 static hashval_t hash (const value_type decl) in hash()
113 return IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME_RAW (decl)); in hash()
669 tree decl; in check_member_template() local
672 decl = DECL_TEMPLATE_RESULT (tmpl); in check_member_template()
674 if (TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
676 || (TREE_CODE (decl) == TYPE_DECL in check_member_template()
677 && MAYBE_CLASS_TYPE_P (TREE_TYPE (decl)))) in check_member_template()
681 gcc_assert (!current_function_decl || LAMBDA_FUNCTION_P (decl)); in check_member_template()
683 gcc_assert (!(TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
684 && DECL_VIRTUAL_P (decl))); in check_member_template()
[all …]
Dfriend.cc166 add_friend (tree type, tree decl, bool complain) in add_friend() argument
173 if (decl == error_mark_node) in add_friend()
178 name = DECL_NAME (decl); in add_friend()
188 if (decl == TREE_VALUE (friends)) in add_friend()
193 decl, type); in add_friend()
198 TREE_VALUE (list) = tree_cons (NULL_TREE, decl, in add_friend()
205 ctx = DECL_CONTEXT (decl); in add_friend()
207 perform_or_defer_access_check (TYPE_BINFO (ctx), decl, decl, in add_friend()
210 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1); in add_friend()
214 = tree_cons (DECL_NAME (decl), build_tree_list (NULL_TREE, decl), in add_friend()
[all …]
Ddecl.cc251 tree decl; member
476 tree decl; in objc_mark_locals_volatile() local
478 for (decl = scope->names; decl; decl = TREE_CHAIN (decl)) in objc_mark_locals_volatile()
479 objc_volatilize_decl (decl); in objc_mark_locals_volatile()
517 tree decl; in poplevel_named_label_1() local
521 for (decl = ent->names_in_scope; decl; decl = (DECL_P (decl) in poplevel_named_label_1()
522 ? DECL_CHAIN (decl) in poplevel_named_label_1()
523 : TREE_CHAIN (decl))) in poplevel_named_label_1()
524 if (decl_jump_unsafe (decl)) in poplevel_named_label_1()
525 vec_safe_push (ent->bad_decls, decl); in poplevel_named_label_1()
[all …]
Dmangle.cc282 maybe_template_info (const tree decl) in maybe_template_info() argument
284 if (TREE_CODE (decl) == TYPE_DECL) in maybe_template_info()
288 const tree type = TREE_TYPE (decl); in maybe_template_info()
296 if (DECL_LANG_SPECIFIC (decl) != NULL in maybe_template_info()
297 && VAR_OR_FUNCTION_DECL_P (decl) in maybe_template_info()
298 && DECL_TEMPLATE_INFO (decl) in maybe_template_info()
299 && PRIMARY_TEMPLATE_P (DECL_TI_TEMPLATE (decl))) in maybe_template_info()
300 return DECL_TEMPLATE_INFO (decl); in maybe_template_info()
478 tree decl = NULL; in is_std_substitution() local
483 decl = node; in is_std_substitution()
[all …]
Dcp-objcp-common.cc51 cxx_warn_unused_global_decl (const_tree decl) in cxx_warn_unused_global_decl() argument
53 if (TREE_CODE (decl) == FUNCTION_DECL && DECL_DECLARED_INLINE_P (decl)) in cxx_warn_unused_global_decl()
55 if (DECL_IN_SYSTEM_HEADER (decl)) in cxx_warn_unused_global_decl()
163 cp_decl_dwarf_attribute (const_tree decl, int attr) in cp_decl_dwarf_attribute() argument
165 if (decl == NULL_TREE) in cp_decl_dwarf_attribute()
171 if (TREE_CODE (decl) == FUNCTION_DECL in cp_decl_dwarf_attribute()
172 && DECL_LANG_SPECIFIC (STRIP_TEMPLATE (decl)) in cp_decl_dwarf_attribute()
173 && DECL_NONCONVERTING_P (decl)) in cp_decl_dwarf_attribute()
178 if (TREE_CODE (decl) == FUNCTION_DECL in cp_decl_dwarf_attribute()
179 && DECL_LANG_SPECIFIC (STRIP_TEMPLATE (decl)) in cp_decl_dwarf_attribute()
[all …]
Dname-lookup.cc42 static void set_identifier_type_value_with_scope (tree id, tree decl,
89 stat_hack (tree decl = NULL_TREE, tree type = NULL_TREE) in stat_hack() argument
95 STAT_DECL (result) = decl; in stat_hack()
191 init_global_partition (binding_cluster *cluster, tree decl) in init_global_partition() argument
197 else if (TREE_PUBLIC (decl) in init_global_partition()
198 && TREE_CODE (decl) == NAMESPACE_DECL in init_global_partition()
199 && !DECL_NAMESPACE_ALIAS (decl)) in init_global_partition()
201 else if (!get_originating_module (decl)) in init_global_partition()
214 decl = ovl_make (decl, *mslot); in init_global_partition()
215 *mslot = decl; in init_global_partition()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dcgraphunit.cc227 if (TREE_CODE (decl) != FUNCTION_DECL) in native_rtl_p()
229 if (!DECL_STRUCT_FUNCTION (decl)) in native_rtl_p()
231 return DECL_STRUCT_FUNCTION (decl)->curr_properties & PROP_rtl; in native_rtl_p()
244 (!DECL_ASSEMBLER_NAME_SET_P (decl) in needed_p()
245 || !TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))); in needed_p()
250 if (DECL_EXTERNAL (decl)) in needed_p()
258 if (forced_by_abi && TREE_PUBLIC (decl)) in needed_p()
262 if (TREE_CODE (decl) == FUNCTION_DECL in needed_p()
263 && (DECL_STATIC_CONSTRUCTOR (decl) || DECL_STATIC_DESTRUCTOR (decl))) in needed_p()
268 if (TREE_PUBLIC (decl) && !DECL_COMDAT (decl)) in needed_p()
[all …]
Dvarpool.cc143 varpool_node::get_create (tree decl) in get_create() argument
145 varpool_node *node = varpool_node::get (decl); in get_create()
146 gcc_checking_assert (VAR_P (decl)); in get_create()
151 node->decl = decl; in get_create()
154 && lookup_attribute ("omp declare target", DECL_ATTRIBUTES (decl))) in get_create()
157 if (ENABLE_OFFLOADING && !DECL_EXTERNAL (decl)) in get_create()
161 vec_safe_push (offload_vars, decl); in get_create()
186 else if (DECL_INITIAL (decl) && DECL_INITIAL (decl) != error_mark_node in remove()
198 if (DECL_INITIAL (decl) in remove_initializer()
199 && !DECL_IN_CONSTANT_POOL (decl) in remove_initializer()
[all …]
Dipa-visibility.cc100 && !DECL_EXTERNAL (node->decl) in non_local_p()
101 && !lookup_attribute ("noipa", DECL_ATTRIBUTES (node->decl)) in non_local_p()
145 && TREE_PUBLIC (node->decl) in comdat_can_be_unshared_p_1()
152 && (!TREE_READONLY (node->decl) in comdat_can_be_unshared_p_1()
153 || TREE_THIS_VOLATILE (node->decl))) in comdat_can_be_unshared_p_1()
197 if (!TREE_PUBLIC (node->decl) in cgraph_externally_visible_p()
198 || DECL_EXTERNAL (node->decl)) in cgraph_externally_visible_p()
206 if (fndecl_built_in_p (node->decl)) in cgraph_externally_visible_p()
212 if (DECL_PRESERVE_P (node->decl)) in cgraph_externally_visible_p()
215 DECL_ATTRIBUTES (node->decl))) in cgraph_externally_visible_p()
[all …]
Dvarasm.cc292 get_section (const char *name, unsigned int flags, tree decl, in get_section() argument
300 if (decl != nullptr in get_section()
301 && DECL_P (decl) in get_section()
302 && lookup_attribute ("retain", DECL_ATTRIBUTES (decl))) in get_section()
309 sect->named.decl = decl; in get_section()
356 if (sect->named.decl != NULL in get_section()
357 && DECL_P (sect->named.decl) in get_section()
358 && decl != sect->named.decl) in get_section()
360 if (decl != NULL && DECL_P (decl)) in get_section()
362 decl, sect->named.decl); in get_section()
[all …]
Dsymtab.cc142 symbol_table::decl_assembler_name_equal (tree decl, const_tree asmname) in decl_assembler_name_equal() argument
144 tree decl_asmname = DECL_ASSEMBLER_NAME (decl); in decl_assembler_name_equal()
165 if (is_a <varpool_node *> (node) && DECL_HARD_REGISTER (node->decl)) in insert_to_assembler_name_hash()
173 tree decl = node->decl; in insert_to_assembler_name_hash() local
175 tree name = DECL_ASSEMBLER_NAME (node->decl); in insert_to_assembler_name_hash()
194 if (cnode->decl == decl) in insert_to_assembler_name_hash()
209 tree decl = node->decl; in unlink_from_assembler_name_hash() local
221 tree name = DECL_ASSEMBLER_NAME (node->decl); in unlink_from_assembler_name_hash()
243 if (cnode->decl == decl) in unlink_from_assembler_name_hash()
274 symbol_table::change_decl_assembler_name (tree decl, tree name) in change_decl_assembler_name() argument
[all …]
Dipa-inline-transform.cc109 && (!DECL_VIRTUAL_P (node->decl) in can_remove_node_now_p_1()
110 || !opt_for_fn (node->decl, flag_devirtualize)) in can_remove_node_now_p_1()
152 if (n->decl != node->decl) in master_clone_with_noninline_clones_p()
222 n = e->callee->create_clone (e->callee->decl, in clone_inlined_nodes()
385 DECL_POSSIBLY_INLINED (callee->decl) = true; in inline_call()
387 if (DECL_FUNCTION_PERSONALITY (callee->decl)) in inline_call()
388 DECL_FUNCTION_PERSONALITY (to->decl) in inline_call()
389 = DECL_FUNCTION_PERSONALITY (callee->decl); in inline_call()
392 if (!opt_for_fn (callee->decl, flag_strict_aliasing) in inline_call()
393 && opt_for_fn (to->decl, flag_strict_aliasing)) in inline_call()
[all …]
Dlanghooks.cc119 lhd_warn_unused_global_decl (const_tree decl) in lhd_warn_unused_global_decl() argument
124 if (TREE_CODE (decl) == FUNCTION_DECL && DECL_DECLARED_INLINE_P (decl)) in lhd_warn_unused_global_decl()
126 if (VAR_P (decl) && TREE_READONLY (decl)) in lhd_warn_unused_global_decl()
128 if (DECL_IN_SYSTEM_HEADER (decl)) in lhd_warn_unused_global_decl()
136 lhd_set_decl_assembler_name (tree decl) in lhd_set_decl_assembler_name() argument
142 if (TREE_CODE (decl) == TYPE_DECL) in lhd_set_decl_assembler_name()
149 gcc_assert (TREE_CODE (decl) == FUNCTION_DECL in lhd_set_decl_assembler_name()
150 || (VAR_P (decl) in lhd_set_decl_assembler_name()
151 && (TREE_STATIC (decl) in lhd_set_decl_assembler_name()
152 || DECL_EXTERNAL (decl) in lhd_set_decl_assembler_name()
[all …]
Dipa-free-lang-data.cc535 free_lang_data_in_decl (tree decl, class free_lang_data_d *fld) in free_lang_data_in_decl() argument
537 gcc_assert (DECL_P (decl)); in free_lang_data_in_decl()
540 lang_hooks.free_lang_data (decl); in free_lang_data_in_decl()
542 TREE_LANG_FLAG_0 (decl) = 0; in free_lang_data_in_decl()
543 TREE_LANG_FLAG_1 (decl) = 0; in free_lang_data_in_decl()
544 TREE_LANG_FLAG_2 (decl) = 0; in free_lang_data_in_decl()
545 TREE_LANG_FLAG_3 (decl) = 0; in free_lang_data_in_decl()
546 TREE_LANG_FLAG_4 (decl) = 0; in free_lang_data_in_decl()
547 TREE_LANG_FLAG_5 (decl) = 0; in free_lang_data_in_decl()
548 TREE_LANG_FLAG_6 (decl) = 0; in free_lang_data_in_decl()
[all …]
Dtree-emutls.cc155 default_emutls_var_init (tree to, tree decl, tree proxy) in default_emutls_var_init() argument
164 elt.value = fold_convert (TREE_TYPE (field), DECL_SIZE_UNIT (decl)); in default_emutls_var_init()
170 DECL_ALIGN_UNIT (decl)); in default_emutls_var_init()
216 get_emutls_init_templ_addr (tree decl) in get_emutls_init_templ_addr() argument
220 if (targetm.emutls.register_common && !DECL_INITIAL (decl) in get_emutls_init_templ_addr()
221 && !DECL_SECTION_NAME (decl)) in get_emutls_init_templ_addr()
224 name = DECL_ASSEMBLER_NAME (decl); in get_emutls_init_templ_addr()
233 to = build_decl (DECL_SOURCE_LOCATION (decl), in get_emutls_init_templ_addr()
234 VAR_DECL, name, TREE_TYPE (decl)); in get_emutls_init_templ_addr()
238 TREE_USED (to) = TREE_USED (decl); in get_emutls_init_templ_addr()
[all …]
Dipa-icf.cc111 if (is_a <varpool_node *> (node) && DECL_VIRTUAL_P (node->decl)) in symbol_compare_collection()
156 decl = node->decl; in sem_item()
208 node->dump_name (), (void *) node->decl); in dump()
294 if (DECL_FUNCTION_SPECIFIC_TARGET (decl)) in get_hash()
297 (TREE_TARGET_OPTION (DECL_FUNCTION_SPECIFIC_TARGET (decl)))); in get_hash()
298 if (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)) in get_hash()
301 (TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)))); in get_hash()
302 hstate.add_flag (DECL_CXX_CONSTRUCTOR_P (decl)); in get_hash()
303 hstate.add_flag (DECL_CXX_DESTRUCTOR_P (decl)); in get_hash()
342 || !opt_for_fn (used_by->decl, optimize_size)) in compare_referenced_symbol_properties()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/
Dsol2.cc45 solaris_insert_attributes (tree decl, tree *attributes) in solaris_insert_attributes() argument
49 if (solaris_pending_aligns != NULL && TREE_CODE (decl) == VAR_DECL) in solaris_insert_attributes()
54 if (DECL_NAME (decl) == name) in solaris_insert_attributes()
56 if (lookup_attribute ("aligned", DECL_ATTRIBUTES (decl)) in solaris_insert_attributes()
59 "aligned %q+D", decl); in solaris_insert_attributes()
70 if (solaris_pending_inits != NULL && TREE_CODE (decl) == FUNCTION_DECL) in solaris_insert_attributes()
74 if (DECL_NAME (decl) == name) in solaris_insert_attributes()
78 TREE_USED (decl) = 1; in solaris_insert_attributes()
79 DECL_PRESERVE_P (decl) = 1; in solaris_insert_attributes()
87 if (solaris_pending_finis != NULL && TREE_CODE (decl) == FUNCTION_DECL) in solaris_insert_attributes()
[all …]
Ddarwin.cc289 tree decl = SYMBOL_REF_DECL (sym_ref); in machopic_symbol_defined_p() local
290 if (!decl) in machopic_symbol_defined_p()
292 if (DECL_COMMON (decl)) in machopic_symbol_defined_p()
1166 tree decl = SYMBOL_REF_DECL (symbol); in machopic_output_indirection() local
1167 gcc_checking_assert (DECL_P (decl)); in machopic_output_indirection()
1169 if (decl != NULL_TREE in machopic_output_indirection()
1170 && DECL_EXTERNAL (decl) && TREE_PUBLIC (decl) in machopic_output_indirection()
1174 && !TREE_STATIC (decl)) in machopic_output_indirection()
1249 darwin_encode_section_info (tree decl, rtx rtl, int first) in darwin_encode_section_info() argument
1260 default_encode_section_info (decl, rtl, first); in darwin_encode_section_info()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/i386/
Dwinnt.cc77 tree decl = *node; in ix86_handle_selectany_attribute() local
82 if (TREE_CODE (decl) != VAR_DECL || !TREE_PUBLIC (decl)) in ix86_handle_selectany_attribute()
87 make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); in ix86_handle_selectany_attribute()
89 DECL_COMMON (decl) = 0; in ix86_handle_selectany_attribute()
102 associated_type (tree decl) in associated_type() argument
104 return (DECL_CONTEXT (decl) && TYPE_P (DECL_CONTEXT (decl)) in associated_type()
105 ? DECL_CONTEXT (decl) : NULL_TREE); in associated_type()
111 i386_pe_determine_dllexport_p (tree decl) in i386_pe_determine_dllexport_p() argument
113 if (TREE_CODE (decl) != VAR_DECL && TREE_CODE (decl) != FUNCTION_DECL) in i386_pe_determine_dllexport_p()
117 if (!TREE_PUBLIC (decl)) in i386_pe_determine_dllexport_p()
[all …]
Dwinnt-cxx.cc31 i386_pe_type_dllimport_p (tree decl) in i386_pe_type_dllimport_p() argument
33 gcc_assert (TREE_CODE (decl) == VAR_DECL in i386_pe_type_dllimport_p()
34 || TREE_CODE (decl) == FUNCTION_DECL); in i386_pe_type_dllimport_p()
36 if (TARGET_NOP_FUN_DLLIMPORT && TREE_CODE (decl) == FUNCTION_DECL) in i386_pe_type_dllimport_p()
43 if (TREE_CODE (decl) == FUNCTION_DECL in i386_pe_type_dllimport_p()
44 && (DECL_DECLARED_INLINE_P (decl) in i386_pe_type_dllimport_p()
45 || DECL_TEMPLATE_INSTANTIATION (decl) in i386_pe_type_dllimport_p()
46 || DECL_ARTIFICIAL (decl))) in i386_pe_type_dllimport_p()
55 i386_pe_type_dllexport_p (tree decl) in i386_pe_type_dllexport_p() argument
57 gcc_assert (TREE_CODE (decl) == VAR_DECL in i386_pe_type_dllexport_p()
[all …]

12345678910>>...27