summaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-11 19:45:32 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-11 19:45:32 +0000
commit62f615b170aa1324147464166c5fd80c5ba52cc0 (patch)
treeb0e7821af42b01b42543a20a94b4ac966bf4eff5 /gcc/profile.c
parent516dd9949381b3efc07962eb547e9142f6aedca1 (diff)
downloadgcc-62f615b170aa1324147464166c5fd80c5ba52cc0.tar.gz
* libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
(setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New. * optabs.c (init_optabs): Initialize them. (init_libfuncs): Use init_one_libfunc. * calls.c (expand_call): Use gcov_flush_libfunc. * expr.c (store_constructor): Use setbits_libfunc. * function.c (expand_main_function): Use init_one_libfunc. * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65478 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 759314451de..07f7a72e840 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -1979,13 +1979,8 @@ create_profiler ()
cfun->arc_profile = 0;
/* Actually generate the code to call __gcov_init. */
- gcov_info_address = force_reg (Pmode,
- gen_rtx_SYMBOL_REF (
- Pmode,
- IDENTIFIER_POINTER (
- DECL_NAME (gcov_info))));
- emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__gcov_init"),
- LCT_NORMAL, VOIDmode, 1,
+ gcov_info_address = force_reg (Pmode, XEXP (DECL_RTL (gcov_info), 0));
+ emit_library_call (gcov_init_libfunc, LCT_NORMAL, VOIDmode, 1,
gcov_info_address, Pmode);
expand_function_end (input_filename, lineno, 0);