diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-01 16:45:36 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-01 16:45:36 +0000 |
commit | ce9ec84194a1869a8eb4180b6eafd6b432a23769 (patch) | |
tree | 1a9bb0dbdc363905b0b9554093c37fa22dc1183a /gcc/builtins.c | |
parent | 068c688e1c7c551edca89c0efb2a073efddb12d4 (diff) | |
download | gcc-ce9ec84194a1869a8eb4180b6eafd6b432a23769.tar.gz |
* 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
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 29 |
1 files changed, 0 insertions, 29 deletions
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: |