Home
last modified time | relevance | path

Searched refs:fndecl (Results 1 – 25 of 63) sorted by relevance

123

/NextBSD/contrib/gcc/
HDtree-optimize.c400 tree_rest_of_compilation (tree fndecl) in tree_rest_of_compilation() argument
409 node = cgraph_node (fndecl); in tree_rest_of_compilation()
413 if (cgraph_preserve_function_body_p (fndecl)) in tree_rest_of_compilation()
417 current_function_decl = fndecl; in tree_rest_of_compilation()
419 input_location = DECL_SOURCE_LOCATION (fndecl); in tree_rest_of_compilation()
420 init_function_start (fndecl); in tree_rest_of_compilation()
438 optimize_inline_calls (fndecl); in tree_rest_of_compilation()
470 DECL_SAVED_TREE (fndecl) = NULL; in tree_rest_of_compilation()
476 if (warn_larger_than && !DECL_EXTERNAL (fndecl) && TREE_TYPE (fndecl)) in tree_rest_of_compilation()
478 tree ret_type = TREE_TYPE (TREE_TYPE (fndecl)); in tree_rest_of_compilation()
[all …]
HDc-gimplify.c78 c_genericize (tree fndecl) in c_genericize() argument
89 lang_hooks.decl_printable_name (fndecl, 2)); in c_genericize()
91 IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fndecl))); in c_genericize()
96 dump_node (DECL_SAVED_TREE (fndecl), in c_genericize()
99 print_c_tree (dump_orig, DECL_SAVED_TREE (fndecl)); in c_genericize()
106 gimplify_function_tree (fndecl); in c_genericize()
109 dump_function (TDI_generic, fndecl); in c_genericize()
114 cgn = cgraph_node (fndecl); in c_genericize()
HDbuiltins.c1778 tree fndecl = get_callee_fndecl (exp); in expand_builtin_mathfn() local
1789 switch (DECL_FUNCTION_CODE (fndecl)) in expand_builtin_mathfn()
1862 exp = build_function_call_expr (fndecl, arglist); in expand_builtin_mathfn()
1950 tree fndecl = get_callee_fndecl (exp); in expand_builtin_mathfn_2() local
1957 if ((DECL_FUNCTION_CODE (fndecl) == BUILT_IN_LDEXP) in expand_builtin_mathfn_2()
1958 || (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_LDEXPF) in expand_builtin_mathfn_2()
1959 || (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_LDEXPL)) in expand_builtin_mathfn_2()
1968 switch (DECL_FUNCTION_CODE (fndecl)) in expand_builtin_mathfn_2()
2018 exp = build_function_call_expr (fndecl, arglist); in expand_builtin_mathfn_2()
2062 tree fndecl = get_callee_fndecl (exp); in expand_builtin_mathfn_3() local
[all …]
HDc-aux-info.c229 gen_formal_list_for_func_def (tree fndecl, formals_style style) in gen_formal_list_for_func_def() argument
234 formal_decl = DECL_ARGUMENTS (fndecl); in gen_formal_list_for_func_def()
250 if (!DECL_ARGUMENTS (fndecl)) in gen_formal_list_for_func_def()
252 if (deserves_ellipsis (TREE_TYPE (fndecl))) in gen_formal_list_for_func_def()
551 gen_aux_info_record (tree fndecl, int is_definition, int is_implicit, in gen_aux_info_record() argument
557 expanded_location xloc = expand_location (DECL_SOURCE_LOCATION (fndecl)); in gen_aux_info_record()
576 gen_decl (fndecl, is_definition, ansi)); in gen_aux_info_record()
585 gen_formal_list_for_func_def (fndecl, k_and_r_names), in gen_aux_info_record()
586 gen_formal_list_for_func_def (fndecl, k_and_r_decls)); in gen_aux_info_record()
HDcalls.c239 emit_call_1 (rtx funexp, tree fntree, tree fndecl ATTRIBUTE_UNUSED, in emit_call_1()
251 HOST_WIDE_INT n_popped = RETURN_POPS_ARGS (fndecl, funtype, stack_size); in emit_call_1()
472 special_function_p (tree fndecl, int flags) in special_function_p() argument
474 if (fndecl && DECL_NAME (fndecl) in special_function_p()
475 && IDENTIFIER_LENGTH (DECL_NAME (fndecl)) <= 17 in special_function_p()
483 && (DECL_CONTEXT (fndecl) == NULL_TREE in special_function_p()
484 || TREE_CODE (DECL_CONTEXT (fndecl)) == TRANSLATION_UNIT_DECL) in special_function_p()
485 && TREE_PUBLIC (fndecl)) in special_function_p()
487 const char *name = IDENTIFIER_POINTER (DECL_NAME (fndecl)); in special_function_p()
493 if (((IDENTIFIER_LENGTH (DECL_NAME (fndecl)) == 6 in special_function_p()
[all …]
HDc-decl.c6878 store_parm_decls_newstyle (tree fndecl, const struct c_arg_info *arg_info) in store_parm_decls_newstyle() argument
6885 "function definition", fndecl); in store_parm_decls_newstyle()
6899 fndecl); in store_parm_decls_newstyle()
6918 DECL_ARGUMENTS (fndecl) = arg_info->parms; in store_parm_decls_newstyle()
6940 store_parm_decls_oldstyle (tree fndecl, const struct c_arg_info *arg_info) in store_parm_decls_oldstyle() argument
6949 fndecl); in store_parm_decls_oldstyle()
6957 error ("%Jparameter name missing from parameter list", fndecl); in store_parm_decls_oldstyle()
6993 DECL_SOURCE_LOCATION (decl) = DECL_SOURCE_LOCATION (fndecl); in store_parm_decls_oldstyle()
7037 DECL_ARGUMENTS (fndecl) = 0; in store_parm_decls_oldstyle()
7045 DECL_ARGUMENTS (fndecl) = last; in store_parm_decls_oldstyle()
[all …]
HDfunction.c1657 instantiate_decls (tree fndecl) in instantiate_decls() argument
1662 for (decl = DECL_ARGUMENTS (fndecl); decl; decl = TREE_CHAIN (decl)) in instantiate_decls()
1674 instantiate_decls_1 (DECL_INITIAL (fndecl)); in instantiate_decls()
1769 tree fndecl = NULL_TREE; in aggregate_value_p() local
1775 fndecl = get_callee_fndecl (fntype); in aggregate_value_p()
1776 fntype = fndecl ? TREE_TYPE (fndecl) : 0; in aggregate_value_p()
1779 fndecl = fntype; in aggregate_value_p()
1780 fntype = TREE_TYPE (fndecl); in aggregate_value_p()
1808 if (TREE_CODE (exp) == CALL_EXPR && fndecl && DECL_RESULT (fndecl) in aggregate_value_p()
1809 && DECL_BY_REFERENCE (DECL_RESULT (fndecl))) in aggregate_value_p()
[all …]
HDipa-prop.c206 tree fndecl; in ipa_method_compute_tree_map() local
212 fndecl = mt->decl; in ipa_method_compute_tree_map()
213 fnargs = DECL_ARGUMENTS (fndecl); in ipa_method_compute_tree_map()
227 tree fndecl; in ipa_method_formal_compute_count() local
232 fndecl = mt->decl; in ipa_method_formal_compute_count()
233 fnargs = DECL_ARGUMENTS (fndecl); in ipa_method_formal_compute_count()
HDtarget.h420 bool (* function_attribute_inlinable_p) (tree fndecl);
450 tree (* fold_builtin) (tree fndecl, tree arglist, bool ignore);
676 rtx (*struct_value_rtx) (tree fndecl, int incoming);
677 bool (*return_in_memory) (tree type, tree fndecl);
HDdbxout.c1520 tree fndecl; in dbxout_type_methods() local
1527 fndecl = methods; in dbxout_type_methods()
1529 fndecl = TREE_VEC_ELT (methods, 0); in dbxout_type_methods()
1531 fndecl = TREE_VEC_ELT (methods, 1); in dbxout_type_methods()
1533 while (fndecl) in dbxout_type_methods()
1540 fndecl && (last == NULL_TREE || DECL_NAME (fndecl) == DECL_NAME (last)); in dbxout_type_methods()
1541 fndecl = TREE_CHAIN (fndecl)) in dbxout_type_methods()
1549 if (TREE_CODE (fndecl) != FUNCTION_DECL) in dbxout_type_methods()
1554 last = fndecl; in dbxout_type_methods()
1558 if (DECL_IGNORED_P (fndecl) || DECL_ABSTRACT (fndecl)) in dbxout_type_methods()
[all …]
HDintegrate.c72 function_attribute_inlinable_p (tree fndecl) in function_attribute_inlinable_p() argument
78 for (a = DECL_ATTRIBUTES (fndecl); a; a = TREE_CHAIN (a)) in function_attribute_inlinable_p()
85 return targetm.function_attribute_inlinable_p (fndecl); in function_attribute_inlinable_p()
HDgimplify.c888 unshare_body (tree *body_p, tree fndecl) in unshare_body() argument
890 struct cgraph_node *cgn = cgraph_node (fndecl); in unshare_body()
893 if (body_p == &DECL_SAVED_TREE (fndecl)) in unshare_body()
901 unvisit_body (tree *body_p, tree fndecl) in unvisit_body() argument
903 struct cgraph_node *cgn = cgraph_node (fndecl); in unvisit_body()
906 if (body_p == &DECL_SAVED_TREE (fndecl)) in unvisit_body()
6292 gimplify_body (tree *body_p, tree fndecl, bool do_parms) in gimplify_body() argument
6306 unshare_body (body_p, fndecl); in gimplify_body()
6307 unvisit_body (body_p, fndecl); in gimplify_body()
6310 input_location = DECL_SOURCE_LOCATION (fndecl); in gimplify_body()
[all …]
HDtree-inline.c972 tree fndecl = id->src_fn; in copy_generic_body() local
974 body = DECL_SAVED_TREE (fndecl); in copy_generic_body()
984 tree fndecl = id->src_fn; in copy_body() local
988 gcc_assert (ENTRY_BLOCK_PTR_FOR_FUNCTION (DECL_STRUCT_FUNCTION (fndecl))); in copy_body()
1460 inline_forbidden_p (tree fndecl) in inline_forbidden_p() argument
1467 FOR_EACH_BB_FN (bb, DECL_STRUCT_FUNCTION (fndecl)) in inline_forbidden_p()
1471 inline_forbidden_p_1, fndecl); in inline_forbidden_p()
2738 tree_versionable_function_p (tree fndecl) in tree_versionable_function_p() argument
2740 if (fndecl == NULL_TREE) in tree_versionable_function_p()
2744 if (!tree_inlinable_function_p (fndecl)) in tree_versionable_function_p()
HDflags.h303 extern bool flag_instrument_functions_exclude_p (tree fndecl);
HDdojump.c565 tree fndecl = get_callee_fndecl (exp); in do_jump() local
568 if (fndecl in do_jump()
569 && DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_NORMAL in do_jump()
570 && DECL_FUNCTION_CODE (fndecl) == BUILT_IN_EXPECT in do_jump()
HDipa-cp.c477 tree fndecl; in ipcp_propagate_const() local
483 fndecl = mt->decl; in ipcp_propagate_const()
486 constant_val_insert (fndecl, parm_tree, const_val); in ipcp_propagate_const()
HDopts.c664 flag_instrument_functions_exclude_p (tree fndecl) in flag_instrument_functions_exclude_p() argument
672 name = lang_hooks.decl_printable_name (fndecl, 0); in flag_instrument_functions_exclude_p()
689 name = DECL_SOURCE_FILE (fndecl); in flag_instrument_functions_exclude_p()
HDpredict.c1008 tree fndecl; in strip_builtin_expect() local
1013 && (fndecl = get_callee_fndecl (TREE_OPERAND (stmt, 1))) in strip_builtin_expect()
1014 && DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_NORMAL in strip_builtin_expect()
1015 && DECL_FUNCTION_CODE (fndecl) == BUILT_IN_EXPECT in strip_builtin_expect()
/NextBSD/contrib/gcc/cp/
HDmethod.c537 do_build_copy_constructor (tree fndecl) in do_build_copy_constructor() argument
539 tree parm = FUNCTION_FIRST_USER_PARM (fndecl); in do_build_copy_constructor()
636 do_build_assign_ref (tree fndecl) in do_build_assign_ref() argument
638 tree parm = TREE_CHAIN (DECL_ARGUMENTS (fndecl)); in do_build_assign_ref()
744 synthesize_method (tree fndecl) in synthesize_method() argument
747 tree context = decl_function_context (fndecl); in synthesize_method()
756 DECL_SOURCE_LOCATION (fndecl) in synthesize_method()
757 = DECL_SOURCE_LOCATION (TYPE_NAME (DECL_CONTEXT (fndecl))); in synthesize_method()
762 if (DECL_CLONED_FUNCTION_P (fndecl)) in synthesize_method()
763 fndecl = DECL_CLONED_FUNCTION (fndecl); in synthesize_method()
[all …]
HDdecl2.c590 tree fndecls, fndecl = 0; in check_classfn() local
599 fndecl = OVL_CURRENT (fndecls); in check_classfn()
601 p2 = TYPE_ARG_TYPES (TREE_TYPE (fndecl)); in check_classfn()
610 if (DECL_STATIC_FUNCTION_P (fndecl) in check_classfn()
616 if (is_template != (TREE_CODE (fndecl) == TEMPLATE_DECL)) in check_classfn()
620 TREE_TYPE (TREE_TYPE (fndecl))) in check_classfn()
624 DECL_TEMPLATE_PARMS (fndecl))) in check_classfn()
626 == DECL_TEMPLATE_SPECIALIZATION (fndecl)) in check_classfn()
629 == DECL_TI_TEMPLATE (fndecl)))) in check_classfn()
641 is_conv_op = DECL_CONV_FN_P (fndecl); in check_classfn()
[all …]
HDdecl.c6021 tree fndecl; in start_cleanup_fn() local
6041 fndecl = build_lang_decl (FUNCTION_DECL, get_identifier (name), fntype); in start_cleanup_fn()
6044 TREE_PUBLIC (fndecl) = 0; in start_cleanup_fn()
6045 DECL_ARTIFICIAL (fndecl) = 1; in start_cleanup_fn()
6050 DECL_INLINE (fndecl) = 1; in start_cleanup_fn()
6051 DECL_DECLARED_INLINE_P (fndecl) = 1; in start_cleanup_fn()
6052 DECL_INTERFACE_KNOWN (fndecl) = 1; in start_cleanup_fn()
6059 DECL_CONTEXT (parmdecl) = fndecl; in start_cleanup_fn()
6061 DECL_ARGUMENTS (fndecl) = parmdecl; in start_cleanup_fn()
6064 pushdecl (fndecl); in start_cleanup_fn()
[all …]
HDsearch.c1916 look_for_overrides (tree type, tree fndecl) in look_for_overrides() argument
1928 found += look_for_overrides_r (basetype, fndecl); in look_for_overrides()
1937 look_for_overrides_here (tree type, tree fndecl) in look_for_overrides_here() argument
1947 if (DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (fndecl)) in look_for_overrides_here()
1950 ix = lookup_fnfields_1 (type, DECL_NAME (fndecl)); in look_for_overrides_here()
1963 else if (DECL_STATIC_FUNCTION_P (fndecl)) in look_for_overrides_here()
1966 tree dtypes = TYPE_ARG_TYPES (TREE_TYPE (fndecl)); in look_for_overrides_here()
1970 else if (same_signature_p (fndecl, fn)) in look_for_overrides_here()
1981 look_for_overrides_r (tree type, tree fndecl) in look_for_overrides_r() argument
1983 tree fn = look_for_overrides_here (type, fndecl); in look_for_overrides_r()
[all …]
HDcp-gimplify.c752 cp_genericize (tree fndecl) in cp_genericize() argument
758 for (t = DECL_ARGUMENTS (fndecl); t; t = TREE_CHAIN (t)) in cp_genericize()
774 if (TREE_ADDRESSABLE (TREE_TYPE (DECL_RESULT (fndecl)))) in cp_genericize()
776 t = DECL_RESULT (fndecl); in cp_genericize()
784 if (DECL_CLONED_FUNCTION_P (fndecl)) in cp_genericize()
790 walk_tree (&DECL_SAVED_TREE (fndecl), cp_genericize_r, p_set, NULL); in cp_genericize()
794 c_genericize (fndecl); in cp_genericize()
HDtypeck.c2747 tree fntype, fndecl; in build_function_call() local
2768 fndecl = function; in build_function_call()
2785 fndecl = NULL_TREE; in build_function_call()
2824 params, fndecl, LOOKUP_NORMAL, in build_function_call()
2862 convert_arguments (tree typelist, tree values, tree fndecl, int flags, int block_call) in convert_arguments() argument
2872 if (fndecl) in convert_arguments()
2874 if (TREE_CODE (TREE_TYPE (fndecl)) == METHOD_TYPE) in convert_arguments()
2876 if (DECL_NAME (fndecl) == NULL_TREE in convert_arguments()
2877 || IDENTIFIER_HAS_TYPE_VALUE (DECL_NAME (fndecl))) in convert_arguments()
2898 if (fndecl) in convert_arguments()
[all …]
HDclass.c867 tree fndecl, in modify_vtable_entry() argument
875 if (fndecl != BV_FN (v) in modify_vtable_entry()
892 BV_FN (v) = fndecl; in modify_vtable_entry()
1786 same_signature_p (tree fndecl, tree base_fndecl) in same_signature_p() argument
1790 if (DECL_DESTRUCTOR_P (base_fndecl) && DECL_DESTRUCTOR_P (fndecl) in same_signature_p()
1791 && special_function_p (base_fndecl) == special_function_p (fndecl)) in same_signature_p()
1797 if (DECL_DESTRUCTOR_P (base_fndecl) || DECL_DESTRUCTOR_P (fndecl)) in same_signature_p()
1800 if (DECL_NAME (fndecl) == DECL_NAME (base_fndecl) in same_signature_p()
1801 || (DECL_CONV_FN_P (fndecl) in same_signature_p()
1803 && same_type_p (DECL_CONV_FN_TYPE (fndecl), in same_signature_p()
[all …]

123