Lines Matching refs:function
83 make_thunk (tree function, bool this_adjusting, in make_thunk() argument
89 gcc_assert (TREE_CODE (function) == FUNCTION_DECL); in make_thunk()
91 gcc_assert (!DECL_THIS_THUNK_P (function)); in make_thunk()
92 gcc_assert (!DECL_RESULT_THUNK_P (function) || this_adjusting); in make_thunk()
107 for (thunk = DECL_THUNKS (function); thunk; thunk = DECL_CHAIN (thunk)) in make_thunk()
121 gcc_assert (!TREE_ASM_WRITTEN (function)); in make_thunk()
124 gcc_assert (TYPE_SIZE (DECL_CONTEXT (function)) in make_thunk()
125 && TYPE_BEING_DEFINED (DECL_CONTEXT (function))); in make_thunk()
127 thunk = build_decl (DECL_SOURCE_LOCATION (function), in make_thunk()
128 FUNCTION_DECL, NULL_TREE, TREE_TYPE (function)); in make_thunk()
129 DECL_LANG_SPECIFIC (thunk) = DECL_LANG_SPECIFIC (function); in make_thunk()
133 DECL_CONTEXT (thunk) = DECL_CONTEXT (function); in make_thunk()
134 TREE_READONLY (thunk) = TREE_READONLY (function); in make_thunk()
135 TREE_THIS_VOLATILE (thunk) = TREE_THIS_VOLATILE (function); in make_thunk()
136 TREE_PUBLIC (thunk) = TREE_PUBLIC (function); in make_thunk()
138 THUNK_TARGET (thunk) = function; in make_thunk()
145 DECL_COMDAT (thunk) = DECL_COMDAT (function); in make_thunk()
161 DECL_CHAIN (thunk) = DECL_THUNKS (function); in make_thunk()
162 DECL_THUNKS (function) = thunk; in make_thunk()
172 tree function, name; in finish_thunk() local
179 function = THUNK_TARGET (thunk); in finish_thunk()
180 name = mangle_thunk (function, DECL_THIS_THUNK_P (thunk), in finish_thunk()
192 for (cov_probe = DECL_THUNKS (function); in finish_thunk()
252 make_alias_for_thunk (tree function) in make_alias_for_thunk() argument
260 alias = make_alias_for (function, get_identifier (buf)); in make_alias_for_thunk()
265 funcn = cgraph_get_node (function); in make_alias_for_thunk()
267 aliasn = cgraph_same_body_alias (funcn, alias, function); in make_alias_for_thunk()
268 DECL_ASSEMBLER_NAME (function); in make_alias_for_thunk()
282 tree a, t, function, alias; in use_thunk() local
298 function = THUNK_TARGET (thunk_fndecl); in use_thunk()
304 if (DECL_THUNK_P (function)) in use_thunk()
306 use_thunk (function, emit_p); in use_thunk()
313 TREE_ADDRESSABLE (function) = 1; in use_thunk()
314 mark_used (function); in use_thunk()
318 if (TARGET_USE_LOCAL_THUNK_ALIAS_P (function)) in use_thunk()
319 alias = make_alias_for_thunk (function); in use_thunk()
321 alias = function; in use_thunk()
342 gcc_assert (DECL_INTERFACE_KNOWN (function)); in use_thunk()
343 TREE_PUBLIC (thunk_fndecl) = TREE_PUBLIC (function); in use_thunk()
344 DECL_VISIBILITY (thunk_fndecl) = DECL_VISIBILITY (function); in use_thunk()
346 = DECL_VISIBILITY_SPECIFIED (function); in use_thunk()
347 DECL_COMDAT (thunk_fndecl) = DECL_COMDAT (function); in use_thunk()
348 DECL_WEAK (thunk_fndecl) = DECL_WEAK (function); in use_thunk()
358 if (TARGET_USE_LOCAL_THUNK_ALIAS_P (function) in use_thunk()
361 resolve_unique_section (function, 0, flag_function_sections); in use_thunk()
363 if (DECL_SECTION_NAME (function) != NULL && DECL_ONE_ONLY (function)) in use_thunk()
368 DECL_SECTION_NAME (thunk_fndecl) = DECL_SECTION_NAME (function); in use_thunk()
374 for (a = DECL_ARGUMENTS (function); a; a = DECL_CHAIN (a)) in use_thunk()
387 funcn = cgraph_get_node (function); in use_thunk()
389 thunk_node = cgraph_add_thunk (funcn, thunk_fndecl, function, in use_thunk()
392 if (DECL_ONE_ONLY (function)) in use_thunk()
404 if (varargs_function_p (function)) in use_thunk()
406 function); in use_thunk()