Home
last modified time | relevance | path

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

12345678910>>...18

/dflybsd-src/contrib/gcc-8.0/libiberty/
H A Dd-demangle.c273 dlang_call_convention (string *decl, const char *mangled) in dlang_call_convention() argument
285 string_append (decl, "extern(C) "); in dlang_call_convention()
289 string_append (decl, "extern(Windows) "); in dlang_call_convention()
293 string_append (decl, "extern(Pascal) "); in dlang_call_convention()
297 string_append (decl, "extern(C++) "); in dlang_call_convention()
301 string_append (decl, "extern(Objective-C) "); in dlang_call_convention()
313 dlang_type_modifiers (string *decl, const char *mangled) in dlang_type_modifiers() argument
322 string_append (decl, " const"); in dlang_type_modifiers()
326 string_append (decl, " immutable"); in dlang_type_modifiers()
330 string_append (decl, " shared"); in dlang_type_modifiers()
[all …]
/dflybsd-src/contrib/binutils-2.34/libiberty/
H A Dd-demangle.c273 dlang_call_convention (string *decl, const char *mangled) in dlang_call_convention() argument
285 string_append (decl, "extern(C) "); in dlang_call_convention()
289 string_append (decl, "extern(Windows) "); in dlang_call_convention()
293 string_append (decl, "extern(Pascal) "); in dlang_call_convention()
297 string_append (decl, "extern(C++) "); in dlang_call_convention()
301 string_append (decl, "extern(Objective-C) "); in dlang_call_convention()
313 dlang_type_modifiers (string *decl, const char *mangled) in dlang_type_modifiers() argument
322 string_append (decl, " const"); in dlang_type_modifiers()
326 string_append (decl, " immutable"); in dlang_type_modifiers()
330 string_append (decl, " shared"); in dlang_type_modifiers()
[all …]
/dflybsd-src/contrib/binutils-2.27/libiberty/
H A Dd-demangle.c200 dlang_call_convention (string *decl, const char *mangled) in dlang_call_convention() argument
212 string_append (decl, "extern(C) "); in dlang_call_convention()
216 string_append (decl, "extern(Windows) "); in dlang_call_convention()
220 string_append (decl, "extern(Pascal) "); in dlang_call_convention()
224 string_append (decl, "extern(C++) "); in dlang_call_convention()
228 string_append (decl, "extern(Objective-C) "); in dlang_call_convention()
240 dlang_type_modifiers (string *decl, const char *mangled) in dlang_type_modifiers() argument
249 string_append (decl, " const"); in dlang_type_modifiers()
253 string_append (decl, " immutable"); in dlang_type_modifiers()
257 string_append (decl, " shared"); in dlang_type_modifiers()
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/cp/
H A Ddecl2.c113 static hashval_t hash (const value_type decl) in hash()
115 return IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME_RAW (decl)); in hash()
561 tree decl; in check_member_template() local
564 decl = DECL_TEMPLATE_RESULT (tmpl); in check_member_template()
566 if (TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
568 || (TREE_CODE (decl) == TYPE_DECL in check_member_template()
569 && MAYBE_CLASS_TYPE_P (TREE_TYPE (decl)))) in check_member_template()
573 gcc_assert (!current_function_decl || LAMBDA_FUNCTION_P (decl)); in check_member_template()
575 gcc_assert (!(TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
576 && DECL_VIRTUAL_P (decl))); in check_member_template()
[all …]
H A Dfriend.c166 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 …]
H A Ddecl.c243 tree decl; member
468 tree decl; in objc_mark_locals_volatile() local
470 for (decl = scope->names; decl; decl = TREE_CHAIN (decl)) in objc_mark_locals_volatile()
471 objc_volatilize_decl (decl); in objc_mark_locals_volatile()
499 tree decl; in poplevel_named_label_1() local
503 for (decl = ent->names_in_scope; decl; decl = (DECL_P (decl) in poplevel_named_label_1()
504 ? DECL_CHAIN (decl) in poplevel_named_label_1()
505 : TREE_CHAIN (decl))) in poplevel_named_label_1()
506 if (decl_jump_unsafe (decl)) in poplevel_named_label_1()
507 vec_safe_push (ent->bad_decls, decl); in poplevel_named_label_1()
[all …]
H A Dmangle.c280 decl_is_template_id (const tree decl, tree* const template_info) in decl_is_template_id() argument
282 if (TREE_CODE (decl) == TYPE_DECL) in decl_is_template_id()
286 const tree type = TREE_TYPE (decl); in decl_is_template_id()
300 if (DECL_LANG_SPECIFIC (decl) != NULL in decl_is_template_id()
301 && VAR_OR_FUNCTION_DECL_P (decl) in decl_is_template_id()
302 && DECL_TEMPLATE_INFO (decl) in decl_is_template_id()
303 && PRIMARY_TEMPLATE_P (DECL_TI_TEMPLATE (decl)) in decl_is_template_id()
304 && TREE_CODE (decl) != TEMPLATE_DECL) in decl_is_template_id()
309 *template_info = DECL_TEMPLATE_INFO (decl); in decl_is_template_id()
482 tree decl = NULL; in is_std_substitution() local
[all …]
H A Dname-lookup.c42 static void set_identifier_type_value_with_scope (tree id, tree decl,
60 stat_hack (tree decl = NULL_TREE, tree type = NULL_TREE)
66 STAT_DECL (result) = decl;
111 add_decl_to_level (cp_binding_level *b, tree decl) in add_decl_to_level() argument
118 gcc_assert (b->names != decl); in add_decl_to_level()
122 TREE_CHAIN (decl) = b->names; in add_decl_to_level()
123 b->names = decl; in add_decl_to_level()
130 && ((VAR_P (decl) in add_decl_to_level()
131 && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))) in add_decl_to_level()
132 || (TREE_CODE (decl) == FUNCTION_DECL in add_decl_to_level()
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/lto/
H A Dlto-symtab.c55 (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->decl))))); in lto_cgraph_replace_node()
69 && DECL_COMDAT (node->decl) && DECL_COMDAT (prevailing_node->decl)) in lto_cgraph_replace_node()
74 = types_compatible_p (TREE_TYPE (TREE_TYPE (prevailing_node->decl)), in lto_cgraph_replace_node()
75 TREE_TYPE (TREE_TYPE (node->decl))); in lto_cgraph_replace_node()
109 if (node->decl != prevailing_node->decl) in lto_cgraph_replace_node()
133 if (DECL_INITIAL (vnode->decl) in lto_varpool_replace_node()
134 && vnode->decl != prevailing_node->decl) in lto_varpool_replace_node()
135 DECL_INITIAL (vnode->decl) = error_mark_node; in lto_varpool_replace_node()
138 if (DECL_VIRTUAL_P (vnode->decl) || DECL_VIRTUAL_P (prevailing_node->decl)) in lto_varpool_replace_node()
175 error_at (DECL_SOURCE_LOCATION (vnode->decl), in lto_varpool_replace_node()
[all …]
H A 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 …]
/dflybsd-src/contrib/gcc-4.7/gcc/cp/
H A Ddecl2.c491 tree decl; in check_member_template() local
494 decl = DECL_TEMPLATE_RESULT (tmpl); in check_member_template()
496 if (TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
498 || (TREE_CODE (decl) == TYPE_DECL in check_member_template()
499 && MAYBE_CLASS_TYPE_P (TREE_TYPE (decl)))) in check_member_template()
504 gcc_assert (!(TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
505 && DECL_VIRTUAL_P (decl))); in check_member_template()
512 error ("template declaration of %q#D", decl); in check_member_template()
749 note_vague_linkage_fn (tree decl) in note_vague_linkage_fn() argument
751 DECL_DEFER_OUTPUT (decl) = 1; in note_vague_linkage_fn()
[all …]
H A Dfriend.c128 add_friend (tree type, tree decl, bool complain) in add_friend() argument
135 if (decl == error_mark_node) in add_friend()
140 name = DECL_NAME (decl); in add_friend()
150 if (decl == TREE_VALUE (friends)) in add_friend()
154 decl, type); in add_friend()
159 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1); in add_friend()
161 TREE_VALUE (list) = tree_cons (NULL_TREE, decl, in add_friend()
168 ctx = DECL_CONTEXT (decl); in add_friend()
170 perform_or_defer_access_check (TYPE_BINFO (ctx), decl, decl); in add_friend()
172 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1); in add_friend()
[all …]
H A Ddecl.c254 tree decl; local
456 tree decl; in objc_mark_locals_volatile() local
458 for (decl = scope->names; decl; decl = TREE_CHAIN (decl)) in objc_mark_locals_volatile()
459 objc_volatilize_decl (decl); in objc_mark_locals_volatile()
478 tree decl; in poplevel_named_label_1() local
482 for (decl = ent->names_in_scope; decl; decl = (DECL_P (decl) in poplevel_named_label_1()
483 ? DECL_CHAIN (decl) in poplevel_named_label_1()
484 : TREE_CHAIN (decl))) in poplevel_named_label_1()
485 if (decl_jump_unsafe (decl)) in poplevel_named_label_1()
486 VEC_safe_push (tree, gc, ent->bad_decls, decl); in poplevel_named_label_1()
[all …]
H A Dmangle.c267 decl_is_template_id (const tree decl, tree* const template_info) in decl_is_template_id() argument
269 if (TREE_CODE (decl) == TYPE_DECL) in decl_is_template_id()
273 const tree type = TREE_TYPE (decl); in decl_is_template_id()
287 if (DECL_LANG_SPECIFIC (decl) != NULL in decl_is_template_id()
288 && DECL_USE_TEMPLATE (decl) in decl_is_template_id()
289 && PRIMARY_TEMPLATE_P (DECL_TI_TEMPLATE (decl)) in decl_is_template_id()
290 && TREE_CODE (decl) != TEMPLATE_DECL) in decl_is_template_id()
295 *template_info = DECL_TEMPLATE_INFO (decl); in decl_is_template_id()
418 tree decl = NULL; in is_std_substitution() local
423 decl = node; in is_std_substitution()
[all …]
/dflybsd-src/contrib/gcc-4.7/gcc/
H A Dlto-symtab.c42 tree decl; local
133 lto_symtab_register_decl (tree decl, in lto_symtab_register_decl() argument
144 gcc_assert (decl in lto_symtab_register_decl()
145 && TREE_PUBLIC (decl) in lto_symtab_register_decl()
146 && (TREE_CODE (decl) == VAR_DECL in lto_symtab_register_decl()
147 || TREE_CODE (decl) == FUNCTION_DECL) in lto_symtab_register_decl()
148 && DECL_ASSEMBLER_NAME_SET_P (decl)); in lto_symtab_register_decl()
149 if (TREE_CODE (decl) == VAR_DECL in lto_symtab_register_decl()
150 && DECL_INITIAL (decl)) in lto_symtab_register_decl()
151 gcc_assert (!DECL_EXTERNAL (decl) in lto_symtab_register_decl()
[all …]
H A Dvarpool.c86 return lang_hooks.decl_printable_name (node->decl, 2); in varpool_node_name()
94 return (hashval_t) DECL_UID (n->decl); in hash_varpool_node()
105 return DECL_UID (n1->decl) == DECL_UID (n2->decl); in eq_varpool_node()
110 varpool_get_node (const_tree decl) in varpool_get_node() argument
114 gcc_assert (TREE_CODE (decl) == VAR_DECL in varpool_get_node()
115 && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))); in varpool_get_node()
119 key.decl = CONST_CAST2 (tree, const_tree, decl); in varpool_get_node()
129 varpool_node (tree decl) in varpool_node() argument
133 gcc_assert (TREE_CODE (decl) == VAR_DECL in varpool_node()
134 && (TREE_STATIC (decl) || DECL_EXTERNAL (decl) || in_lto_p)); in varpool_node()
[all …]
H A Dvarasm.c274 get_section (const char *name, unsigned int flags, tree decl) in get_section() argument
287 sect->named.decl = decl; in get_section()
315 if (decl == 0) in get_section()
316 decl = sect->named.decl; in get_section()
317 gcc_assert (decl); in get_section()
318 if (sect->named.decl == NULL) in get_section()
319 error ("%+D causes a section type conflict", decl); in get_section()
323 decl, sect->named.decl); in get_section()
324 if (decl != sect->named.decl) in get_section()
325 inform (DECL_SOURCE_LOCATION (sect->named.decl), in get_section()
[all …]
H A Dipa.c99 && (!DECL_EXTERNAL (node->decl) in process_references()
126 && !DECL_EXTERNAL (node->decl) in cgraph_non_local_node_p_1()
197 || (before_inlining_p && DECL_VIRTUAL_P (node->decl)))) in cgraph_remove_unreachable_nodes()
253 || !DECL_EXTERNAL (e->callee->decl) in cgraph_remove_unreachable_nodes()
283 && !gimple_has_body_p (node->decl)) in cgraph_remove_unreachable_nodes()
285 bool noninline = node->clone_of->decl != node->decl; in cgraph_remove_unreachable_nodes()
382 node->former_clone_of = node->clone_of->decl; in cgraph_remove_unreachable_nodes()
492 && (TREE_ADDRESSABLE (vnode->decl) || !TREE_READONLY (vnode->decl))) in ipa_discover_readonly_nonaddressable_vars()
511 if (TREE_ADDRESSABLE (vnode->decl) && !address_taken) in ipa_discover_readonly_nonaddressable_vars()
515 TREE_ADDRESSABLE (vnode->decl) = 0; in ipa_discover_readonly_nonaddressable_vars()
[all …]
H A Dcgraphunit.c160 cgraph_decide_is_function_needed (struct cgraph_node *node, tree decl) in cgraph_decide_is_function_needed() argument
169 if (DECL_ASSEMBLER_NAME_SET_P (decl) in cgraph_decide_is_function_needed()
171 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) in cgraph_decide_is_function_needed()
177 && DECL_DECLARED_INLINE_P (decl) in cgraph_decide_is_function_needed()
178 && !DECL_EXTERNAL (decl) in cgraph_decide_is_function_needed()
179 && !DECL_DISREGARD_INLINE_LIMITS (decl)) in cgraph_decide_is_function_needed()
196 if (((TREE_PUBLIC (decl) in cgraph_decide_is_function_needed()
199 && !DECL_DISREGARD_INLINE_LIMITS (decl) in cgraph_decide_is_function_needed()
200 && !DECL_DECLARED_INLINE_P (decl) in cgraph_decide_is_function_needed()
201 && !(DECL_CONTEXT (decl) in cgraph_decide_is_function_needed()
[all …]
H A Dc-decl.c191 tree decl; /* the decl bound */ member
210 (I_SYMBOL_BINDING(node) ? I_SYMBOL_BINDING(node)->decl : 0)
215 (I_TAG_BINDING(node) ? I_TAG_BINDING(node)->decl : 0)
220 (I_LABEL_BINDING(node) ? I_LABEL_BINDING(node)->decl : 0)
439 #define SCOPE_LIST_APPEND(scope, list, decl) do { \ argument
441 tree d_ = (decl); \
565 decl_jump_unsafe (tree decl) in decl_jump_unsafe() argument
567 if (error_operand_p (decl)) in decl_jump_unsafe()
571 if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == TYPE_DECL) in decl_jump_unsafe()
572 && variably_modified_type_p (TREE_TYPE (decl), NULL_TREE)) in decl_jump_unsafe()
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/
H A Dvarpool.c144 varpool_node::get_create (tree decl) in get_create() argument
146 varpool_node *node = varpool_node::get (decl); in get_create()
147 gcc_checking_assert (VAR_P (decl)); in get_create()
152 node->decl = decl; in get_create()
155 && lookup_attribute ("omp declare target", DECL_ATTRIBUTES (decl))) in get_create()
158 if (ENABLE_OFFLOADING && !DECL_EXTERNAL (decl)) in get_create()
162 vec_safe_push (offload_vars, decl); in get_create()
187 else if (DECL_INITIAL (decl) && DECL_INITIAL (decl) != error_mark_node in remove()
199 if (DECL_INITIAL (decl) in remove_initializer()
200 && !DECL_IN_CONSTANT_POOL (decl) in remove_initializer()
[all …]
H A Dipa-visibility.c100 && !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 (DECL_BUILT_IN (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 …]
H A Dvarasm.c281 get_section (const char *name, unsigned int flags, tree decl) in get_section() argument
293 sect->named.decl = decl; in get_section()
332 if (sect->named.decl != NULL in get_section()
333 && DECL_P (sect->named.decl) in get_section()
334 && decl != sect->named.decl) in get_section()
336 if (decl != NULL && DECL_P (decl)) in get_section()
338 decl, sect->named.decl); in get_section()
340 error ("section type conflict with %qD", sect->named.decl); in get_section()
341 inform (DECL_SOURCE_LOCATION (sect->named.decl), in get_section()
342 "%qD was declared here", sect->named.decl); in get_section()
[all …]
H A Dsymtab.c141 symbol_table::decl_assembler_name_equal (tree decl, const_tree asmname) in decl_assembler_name_equal() argument
143 tree decl_asmname = DECL_ASSEMBLER_NAME (decl); in decl_assembler_name_equal()
164 if (is_a <varpool_node *> (node) && DECL_HARD_REGISTER (node->decl)) in insert_to_assembler_name_hash()
172 tree decl = node->decl; in insert_to_assembler_name_hash() local
174 tree name = DECL_ASSEMBLER_NAME (node->decl); in insert_to_assembler_name_hash()
193 if (cnode->decl == decl) in insert_to_assembler_name_hash()
208 tree decl = node->decl; in unlink_from_assembler_name_hash() local
220 tree name = DECL_ASSEMBLER_NAME (node->decl); in unlink_from_assembler_name_hash()
242 if (cnode->decl == decl) in unlink_from_assembler_name_hash()
273 symbol_table::change_decl_assembler_name (tree decl, tree name) in change_decl_assembler_name() argument
[all …]
H A Dcgraphunit.c228 if (TREE_CODE (decl) != FUNCTION_DECL) in native_rtl_p()
230 if (!DECL_STRUCT_FUNCTION (decl)) in native_rtl_p()
232 return DECL_STRUCT_FUNCTION (decl)->curr_properties & PROP_rtl; in native_rtl_p()
245 (!DECL_ASSEMBLER_NAME_SET_P (decl) in needed_p()
246 || !TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))); in needed_p()
251 if (DECL_EXTERNAL (decl)) in needed_p()
259 if (forced_by_abi && TREE_PUBLIC (decl)) in needed_p()
263 if (TREE_CODE (decl) == FUNCTION_DECL in needed_p()
264 && (DECL_STATIC_CONSTRUCTOR (decl) || DECL_STATIC_DESTRUCTOR (decl))) in needed_p()
269 if (TREE_PUBLIC (decl) && !DECL_COMDAT (decl)) in needed_p()
[all …]

12345678910>>...18