From 68d28100a03d7a4bb0f5763f6478c2c84bf4e2ab Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 11 Apr 2003 12:45:32 -0700 Subject: libfuncs.h (LTI_setbits, [...]): New. * 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. From-SVN: r65478 --- gcc/profile.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'gcc/profile.c') diff --git a/gcc/profile.c b/gcc/profile.c index 7593144..07f7a72 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); -- cgit v1.1