aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-12-01 17:45:36 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2010-12-01 16:45:36 +0000
commitb01890ffd36bdd210e37b212b86eb3548ab325b6 (patch)
tree1a9bb0dbdc363905b0b9554093c37fa22dc1183a /gcc/builtins.c
parent0df226a41f324eb82b72efd37298f83aed7dff97 (diff)
downloadgcc-b01890ffd36bdd210e37b212b86eb3548ab325b6.zip
gcc-b01890ffd36bdd210e37b212b86eb3548ab325b6.tar.gz
gcc-b01890ffd36bdd210e37b212b86eb3548ab325b6.tar.bz2
tree.c (build_common_builtin_nodes): Do not initialize BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
* 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. From-SVN: r167342
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 5c09382..2816a7e 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: