Home
last modified time | relevance | path

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

12345678910>>...24

/openbsd-src/gnu/usr.bin/gcc/gcc/config/i386/
H A Dwinnt.c155 associated_type (decl) in associated_type() argument
156 tree decl; in associated_type()
162 if (TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE)
166 if (! DECL_ARTIFICIAL (decl) || DECL_VINDEX (decl))
167 t = TREE_TYPE (TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl))));
169 else if (DECL_CONTEXT (decl)
170 && TREE_CODE_CLASS (TREE_CODE (DECL_CONTEXT (decl))) == 't')
171 t = DECL_CONTEXT (decl);
179 i386_pe_dllexport_p (decl) in i386_pe_dllexport_p() argument
180 tree decl; in i386_pe_dllexport_p()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/config/arm/
H A Dpe.c40 arm_dllexport_p (decl) in arm_dllexport_p() argument
41 tree decl; in arm_dllexport_p()
45 if (TREE_CODE (decl) != VAR_DECL
46 && TREE_CODE (decl) != FUNCTION_DECL)
48 exp = lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl));
58 arm_dllimport_p (decl) in arm_dllimport_p() argument
59 tree decl; in arm_dllimport_p()
63 if (TREE_CODE (decl) == FUNCTION_DECL
67 if (TREE_CODE (decl) != VAR_DECL
68 && TREE_CODE (decl) != FUNCTION_DECL)
[all …]
/openbsd-src/gnu/gcc/gcc/config/arm/
H A Dpe.c43 arm_dllexport_p (decl) in arm_dllexport_p() argument
44 tree decl; in arm_dllexport_p()
48 if (TREE_CODE (decl) != VAR_DECL
49 && TREE_CODE (decl) != FUNCTION_DECL)
51 exp = lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl));
61 arm_dllimport_p (decl) in arm_dllimport_p() argument
62 tree decl; in arm_dllimport_p()
66 if (TREE_CODE (decl) == FUNCTION_DECL
70 if (TREE_CODE (decl) != VAR_DECL
71 && TREE_CODE (decl) != FUNCTION_DECL)
[all …]
/openbsd-src/gnu/gcc/gcc/config/i386/
H A Dwinnt.c109 associated_type (tree decl) in associated_type() argument
111 return (DECL_CONTEXT (decl) && TYPE_P (DECL_CONTEXT (decl))) in associated_type()
112 ? DECL_CONTEXT (decl) : NULL_TREE; in associated_type()
119 i386_pe_dllexport_p (tree decl) in i386_pe_dllexport_p() argument
121 if (TREE_CODE (decl) != VAR_DECL in i386_pe_dllexport_p()
122 && TREE_CODE (decl) != FUNCTION_DECL) in i386_pe_dllexport_p()
125 if (lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl))) in i386_pe_dllexport_p()
129 if (associated_type (decl) in i386_pe_dllexport_p()
131 TYPE_ATTRIBUTES (associated_type (decl)))) in i386_pe_dllexport_p()
132 return i386_pe_type_dllexport_p (decl); in i386_pe_dllexport_p()
[all …]
H A Dwinnt-cxx.c39 i386_pe_type_dllimport_p (tree decl) in i386_pe_type_dllimport_p() argument
41 gcc_assert (TREE_CODE (decl) == VAR_DECL in i386_pe_type_dllimport_p()
42 || TREE_CODE (decl) == FUNCTION_DECL); in i386_pe_type_dllimport_p()
44 if (TARGET_NOP_FUN_DLLIMPORT && TREE_CODE (decl) == FUNCTION_DECL) in i386_pe_type_dllimport_p()
51 if (TREE_CODE (decl) == FUNCTION_DECL in i386_pe_type_dllimport_p()
52 && (DECL_DECLARED_INLINE_P (decl) in i386_pe_type_dllimport_p()
53 || DECL_TEMPLATE_INSTANTIATION (decl) in i386_pe_type_dllimport_p()
54 || DECL_ARTIFICIAL (decl))) in i386_pe_type_dllimport_p()
60 else if (TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE in i386_pe_type_dllimport_p()
61 && DECL_VIRTUAL_P (decl)) in i386_pe_type_dllimport_p()
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dcgraphunit.c194 decide_is_function_needed (struct cgraph_node *node, tree decl) in decide_is_function_needed() argument
197 if (MAIN_NAME_P (DECL_NAME (decl)) in decide_is_function_needed()
198 && TREE_PUBLIC (decl)) in decide_is_function_needed()
208 if (!flag_unit_at_a_time && lookup_attribute ("used", DECL_ATTRIBUTES (decl))) in decide_is_function_needed()
214 if (DECL_ASSEMBLER_NAME_SET_P (decl) in decide_is_function_needed()
215 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) in decide_is_function_needed()
232 if (((TREE_PUBLIC (decl) in decide_is_function_needed()
234 && !DECL_DECLARED_INLINE_P (decl) in decide_is_function_needed()
237 && !DECL_COMDAT (decl) && !DECL_EXTERNAL (decl)) in decide_is_function_needed()
242 if (DECL_STATIC_CONSTRUCTOR (decl) || DECL_STATIC_DESTRUCTOR (decl)) in decide_is_function_needed()
[all …]
H A Dvarasm.c284 get_section (const char *name, unsigned int flags, tree decl) in get_section() argument
297 sect->named.decl = decl; in get_section()
307 if (decl == 0) in get_section()
308 decl = sect->named.decl; in get_section()
309 gcc_assert (decl); in get_section()
310 error ("%+D causes a section type conflict", decl); in get_section()
451 get_named_section (tree decl, const char *name, int reloc) in get_named_section() argument
455 gcc_assert (!decl || DECL_P (decl)); in get_named_section()
457 name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl)); in get_named_section()
459 flags = targetm.section_type_flags (decl, name, reloc); in get_named_section()
[all …]
H A Dc-decl.c206 tree decl; /* the decl bound */ member
225 (I_SYMBOL_BINDING(node) ? I_SYMBOL_BINDING(node)->decl : 0)
230 (I_TAG_BINDING(node) ? I_TAG_BINDING(node)->decl : 0)
235 (I_LABEL_BINDING(node) ? I_LABEL_BINDING(node)->decl : 0)
381 #define SCOPE_LIST_APPEND(scope, list, decl) do { \ argument
383 tree d_ = (decl); \
482 bind (tree name, tree decl, struct c_scope *scope, bool invisible, bool nested) in bind() argument
495 b->decl = decl; in bind()
510 switch (TREE_CODE (decl)) in bind()
558 c_finish_incomplete_decl (tree decl) in c_finish_incomplete_decl() argument
[all …]
H A Dcgraph.c165 return (hashval_t) DECL_UID (n->decl); in hash_node()
175 return DECL_UID (n1->decl) == DECL_UID (n2->decl); in eq_node()
199 cgraph_node (tree decl) in cgraph_node() argument
203 gcc_assert (TREE_CODE (decl) == FUNCTION_DECL); in cgraph_node()
208 key.decl = decl; in cgraph_node()
221 node->decl = decl; in cgraph_node()
223 if (DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL) in cgraph_node()
225 node->origin = cgraph_node (DECL_CONTEXT (decl)); in cgraph_node()
249 decl_assembler_name_equal (tree decl, tree asmname) in decl_assembler_name_equal() argument
251 tree decl_asmname = DECL_ASSEMBLER_NAME (decl); in decl_assembler_name_equal()
[all …]
H A Dlanghooks.c138 lhd_warn_unused_global_decl (tree decl) in lhd_warn_unused_global_decl() argument
143 if (TREE_CODE (decl) == FUNCTION_DECL && DECL_INLINE (decl)) in lhd_warn_unused_global_decl()
145 if (TREE_CODE (decl) == VAR_DECL && TREE_READONLY (decl)) in lhd_warn_unused_global_decl()
147 if (DECL_IN_SYSTEM_HEADER (decl)) in lhd_warn_unused_global_decl()
155 lhd_set_decl_assembler_name (tree decl) in lhd_set_decl_assembler_name() argument
161 gcc_assert (TREE_CODE (decl) == FUNCTION_DECL in lhd_set_decl_assembler_name()
162 || (TREE_CODE (decl) == VAR_DECL in lhd_set_decl_assembler_name()
163 && (TREE_STATIC (decl) in lhd_set_decl_assembler_name()
164 || DECL_EXTERNAL (decl) in lhd_set_decl_assembler_name()
165 || TREE_PUBLIC (decl)))); in lhd_set_decl_assembler_name()
[all …]
H A Dc-omp.c162 check_omp_for_incr_expr (tree exp, tree decl) in check_omp_for_incr_expr() argument
167 || TYPE_PRECISION (TREE_TYPE (exp)) < TYPE_PRECISION (TREE_TYPE (decl))) in check_omp_for_incr_expr()
170 if (exp == decl) in check_omp_for_incr_expr()
176 t = check_omp_for_incr_expr (TREE_OPERAND (exp, 0), decl); in check_omp_for_incr_expr()
181 t = check_omp_for_incr_expr (TREE_OPERAND (exp, 0), decl); in check_omp_for_incr_expr()
186 t = check_omp_for_incr_expr (TREE_OPERAND (exp, 0), decl); in check_omp_for_incr_expr()
189 t = check_omp_for_incr_expr (TREE_OPERAND (exp, 1), decl); in check_omp_for_incr_expr()
207 c_finish_omp_for (location_t locus, tree decl, tree init, tree cond, in c_finish_omp_for() argument
217 if (!INTEGRAL_TYPE_P (TREE_TYPE (decl))) in c_finish_omp_for()
219 error ("%Hinvalid type for iteration variable %qE", &elocus, decl); in c_finish_omp_for()
[all …]
/openbsd-src/gnu/gcc/gcc/cp/
H A Ddecl2.c439 tree decl; in check_member_template() local
442 decl = DECL_TEMPLATE_RESULT (tmpl); in check_member_template()
444 if (TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
445 || (TREE_CODE (decl) == TYPE_DECL in check_member_template()
446 && IS_AGGR_TYPE (TREE_TYPE (decl)))) in check_member_template()
451 gcc_assert (!(TREE_CODE (decl) == FUNCTION_DECL in check_member_template()
452 && DECL_VIRTUAL_P (decl))); in check_member_template()
459 error ("template declaration of %q#D", decl); in check_member_template()
697 note_vague_linkage_fn (tree decl) in note_vague_linkage_fn() argument
699 if (!DECL_DEFERRED_FN (decl)) in note_vague_linkage_fn()
[all …]
H A Dfriend.c132 add_friend (tree type, tree decl, bool complain) in add_friend() argument
139 if (decl == error_mark_node) in add_friend()
144 name = DECL_NAME (decl); in add_friend()
154 if (decl == TREE_VALUE (friends)) in add_friend()
158 decl, type); in add_friend()
163 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1); in add_friend()
165 TREE_VALUE (list) = tree_cons (NULL_TREE, decl, in add_friend()
172 ctx = DECL_CONTEXT (decl); in add_friend()
174 perform_or_defer_access_check (TYPE_BINFO (ctx), decl, decl); in add_friend()
176 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1); in add_friend()
[all …]
H A Ddecl.c448 tree decl; in objc_mark_locals_volatile() local
450 for (decl = scope->names; decl; decl = TREE_CHAIN (decl)) in objc_mark_locals_volatile()
451 objc_volatilize_decl (decl); in objc_mark_locals_volatile()
470 tree decl; in poplevel_named_label_1() local
472 for (decl = ent->names_in_scope; decl; decl = TREE_CHAIN (decl)) in poplevel_named_label_1()
473 if (decl_jump_unsafe (decl)) in poplevel_named_label_1()
474 ent->bad_decls = tree_cons (NULL, decl, ent->bad_decls); in poplevel_named_label_1()
536 tree decl; in poplevel() local
605 for (decl = getdecls (); decl; decl = TREE_CHAIN (decl)) in poplevel()
606 if (TREE_CODE (decl) == VAR_DECL in poplevel()
[all …]
H A Dsemantics.c249 probe->decl == chk->decl && in pop_to_parent_deferring_access_checks()
276 enforce_access (chk->binfo, chk->decl, chk->diag_decl); in perform_access_checks()
305 perform_or_defer_access_check (tree binfo, tree decl, tree diag_decl) in perform_or_defer_access_check() argument
325 enforce_access (binfo, decl, diag_decl); in perform_or_defer_access_check()
335 if (chk->decl == decl && chk->binfo == binfo && in perform_or_defer_access_check()
346 new_access->decl = decl; in perform_or_defer_access_check()
426 add_decl_expr (tree decl) in add_decl_expr() argument
428 tree r = build_stmt (DECL_EXPR, decl); in add_decl_expr()
429 if (DECL_INITIAL (decl) in add_decl_expr()
430 || (DECL_SIZE (decl) && TREE_SIDE_EFFECTS (DECL_SIZE (decl)))) in add_decl_expr()
[all …]
H A Dmangle.c304 decl_is_template_id (const tree decl, tree* const template_info) in decl_is_template_id() argument
306 if (TREE_CODE (decl) == TYPE_DECL) in decl_is_template_id()
310 const tree type = TREE_TYPE (decl); in decl_is_template_id()
324 if (DECL_LANG_SPECIFIC (decl) != NULL in decl_is_template_id()
325 && DECL_USE_TEMPLATE (decl) in decl_is_template_id()
326 && PRIMARY_TEMPLATE_P (DECL_TI_TEMPLATE (decl)) in decl_is_template_id()
327 && TREE_CODE (decl) != TEMPLATE_DECL) in decl_is_template_id()
332 *template_info = DECL_TEMPLATE_INFO (decl); in decl_is_template_id()
442 tree decl = NULL; in is_std_substitution() local
447 decl = node; in is_std_substitution()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Dfriend.c135 add_friend (type, decl) in add_friend() argument
136 tree type, decl; in add_friend()
142 if (decl == error_mark_node)
147 name = DECL_NAME (decl);
157 if (decl == TREE_VALUE (friends))
160 decl, type);
167 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1);
169 TREE_VALUE (list) = tree_cons (error_mark_node, decl,
176 maybe_add_class_template_decl_list (type, decl, /*friend_p=*/1);
179 = tree_cons (DECL_NAME (decl), build_tree_list (error_mark_node, decl),
[all …]
H A Ddecl2.c174 warn_if_unknown_interface (decl) in warn_if_unknown_interface() argument
175 tree decl; in warn_if_unknown_interface()
193 decl);
199 decl);
569 tree decl; local
572 decl = DECL_TEMPLATE_RESULT (tmpl);
574 if (TREE_CODE (decl) == FUNCTION_DECL
575 || (TREE_CODE (decl) == TYPE_DECL
576 && IS_AGGR_TYPE (TREE_TYPE (decl))))
583 decl);
[all …]
H A Ddecl.c1156 push_binding (id, decl, level) in push_binding() argument
1158 tree decl;
1172 BINDING_VALUE (binding) = decl;
1191 add_binding (id, decl) in add_binding() argument
1193 tree decl;
1199 if (TREE_CODE (decl) == TYPE_DECL && DECL_ARTIFICIAL (decl))
1201 BINDING_TYPE (binding) = decl;
1206 BINDING_VALUE (binding) = decl;
1216 BINDING_VALUE (binding) = decl;
1220 && TREE_CODE (decl) == TYPE_DECL
[all …]
H A Dmangle.c245 decl_is_template_id (decl, template_info) in decl_is_template_id() argument
246 tree decl; in decl_is_template_id()
249 if (TREE_CODE (decl) == TYPE_DECL)
253 tree type = TREE_TYPE (decl);
267 if (DECL_LANG_SPECIFIC (decl) != NULL
268 && DECL_USE_TEMPLATE (decl)
269 && PRIMARY_TEMPLATE_P (DECL_TI_TEMPLATE (decl))
270 && TREE_CODE (decl) != TEMPLATE_DECL)
275 *template_info = DECL_TEMPLATE_INFO (decl);
390 tree decl = NULL; local
[all …]
/openbsd-src/gnu/gcc/gcc/config/sh/
H A Dsymbian.c56 sh_symbian_associated_type (tree decl) in sh_symbian_associated_type() argument
60 if (TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE) in sh_symbian_associated_type()
68 if (DECL_CONTEXT (decl) && TYPE_P (DECL_CONTEXT (decl))) in sh_symbian_associated_type()
69 t = DECL_CONTEXT (decl); in sh_symbian_associated_type()
77 sh_symbian_dllexport_p (tree decl) in sh_symbian_dllexport_p() argument
81 if ( TREE_CODE (decl) != VAR_DECL in sh_symbian_dllexport_p()
82 && TREE_CODE (decl) != FUNCTION_DECL) in sh_symbian_dllexport_p()
85 exp = lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl)); in sh_symbian_dllexport_p()
90 tree class = sh_symbian_associated_type (decl); in sh_symbian_dllexport_p()
98 print_node_brief (stderr, "dllexport:", decl, 0); in sh_symbian_dllexport_p()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dvarasm.c432 named_section (decl, name, reloc) in named_section() argument
433 tree decl; in named_section()
439 if (decl != NULL_TREE && !DECL_P (decl))
442 name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl));
444 flags = (* targetm.section_type_flags) (decl, name, reloc);
451 if (decl && ! set_named_section_flags (name, flags))
455 error_with_decl (decl, "%s causes a section type conflict");
464 resolve_unique_section (decl, reloc, flag_function_or_data_sections) in resolve_unique_section() argument
465 tree decl; in resolve_unique_section()
469 if (DECL_SECTION_NAME (decl) == NULL_TREE
[all …]
H A Ddwarfout.c629 #define TYPE_DECL_IS_STUB(decl) \ argument
630 (DECL_NAME (decl) == NULL \
631 || (DECL_ARTIFICIAL (decl) \
632 && is_tagged_type (TREE_TYPE (decl)) \
633 && decl == TYPE_STUB_DECL (TREE_TYPE (decl))))
1585 decl_ultimate_origin (decl) in decl_ultimate_origin() argument
1586 tree decl; in decl_ultimate_origin()
1589 if (DECL_FROM_INLINE (DECL_ORIGIN (decl)))
1595 return DECL_ABSTRACT_ORIGIN (decl);
1634 decl_class_context (decl) in decl_class_context() argument
[all …]
H A Dc-pragma.c266 apply_pragma_weak (decl, value) in apply_pragma_weak() argument
267 tree decl, value; in apply_pragma_weak()
273 decl_attributes (&decl, build_tree_list (get_identifier ("alias"),
278 if (SUPPORTS_WEAK && DECL_EXTERNAL (decl) && TREE_USED (decl)
279 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
280 …warning_with_decl (decl, "applying #pragma weak `%s' after first use results in unspecified behavi…
282 declare_weak (decl);
286 maybe_apply_pragma_weak (decl) in maybe_apply_pragma_weak() argument
287 tree decl; in maybe_apply_pragma_weak()
298 if (!DECL_EXTERNAL (decl) && !TREE_PUBLIC (decl))
[all …]
H A Dc-decl.c329 c_finish_incomplete_decl (decl) in c_finish_incomplete_decl() argument
330 tree decl; in c_finish_incomplete_decl()
332 if (TREE_CODE (decl) == VAR_DECL)
334 tree type = TREE_TYPE (decl);
337 && ! DECL_EXTERNAL (decl)
340 warning_with_decl (decl, "array `%s' assumed to have one element");
344 layout_decl (decl, 0);
506 tree decl; local
551 for (decl = decls; decl; decl = TREE_CHAIN (decl))
552 if (TREE_CODE (decl) == FUNCTION_DECL
[all …]

12345678910>>...24