From ce9ec84194a1869a8eb4180b6eafd6b432a23769 Mon Sep 17 00:00:00 2001 From: hubicka Date: Wed, 1 Dec 2010 16:45:36 +0000 Subject: * tree.c (build_common_builtin_nodes): Do not initialize BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT. * builtins.c (expand_builtin_profile_func): Remove. (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT. * builtins.def (profile_func_enter, profile_func_exit): Remove stubs. (__cyg_profile_func_enter, __cyg_profile_func_exit): New. * gimplify.c (gimplify_function_tree): Reorganize code calling profiling functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167342 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/builtins.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'gcc/builtins.c') diff --git a/gcc/builtins.c b/gcc/builtins.c index 5c0938266c5..2816a7e1e61 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5202,30 +5202,6 @@ build_string_literal (int len, const char *str) return t; } -/* Expand a call to either the entry or exit function profiler. */ - -static rtx -expand_builtin_profile_func (bool exitp) -{ - rtx this_rtx, which; - - this_rtx = DECL_RTL (current_function_decl); - gcc_assert (MEM_P (this_rtx)); - this_rtx = XEXP (this_rtx, 0); - - if (exitp) - which = profile_function_exit_libfunc; - else - which = profile_function_entry_libfunc; - - emit_library_call (which, LCT_NORMAL, VOIDmode, 2, this_rtx, Pmode, - expand_builtin_return_addr (BUILT_IN_RETURN_ADDRESS, - 0), - Pmode); - - return const0_rtx; -} - /* Expand a call to __builtin___clear_cache. */ static rtx @@ -6364,11 +6340,6 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode, expand_builtin_prefetch (exp); return const0_rtx; - case BUILT_IN_PROFILE_FUNC_ENTER: - return expand_builtin_profile_func (false); - case BUILT_IN_PROFILE_FUNC_EXIT: - return expand_builtin_profile_func (true); - case BUILT_IN_INIT_TRAMPOLINE: return expand_builtin_init_trampoline (exp); case BUILT_IN_ADJUST_TRAMPOLINE: -- cgit v1.2.1