From 4781f9b972491fdc09da6dedcdb5050ad2621340 Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 17 Jun 2002 17:47:22 +0000 Subject: * function.h (struct function) [funcdef_no]: Rename profile_label_no. (current_function_funcdef_no): Similarly. * function.c (funcdef_no): Similarly. (prepare_function_start): Set current_function_funcdef_no. (expand_function_start): Don't set current_function_profile_label_no. * dwarf2out.h (current_funcdef_number): Remove. * dwarf2out.c (current_funcdef_number): Remove. Replace with current_function_funcdef_no throughout. * dwarfout.c, vmsdbgout.c: Similarly. * except.c (sjlj_funcdef_number): Remove. (sjlj_emit_function_enter): Use current_function_funcdef_no instead. (output_function_exception_table): Likewise. * final.c (profile_function): Use current_function_funcdef_no instead of current_function_profile_label_no. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54709 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/function.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 8c0c6c58549..4a963dc5fae 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -124,8 +124,8 @@ int current_function_uses_only_leaf_regs; post-instantiation libcalls. */ int virtuals_instantiated; -/* Assign unique numbers to labels generated for profiling. */ -static int profile_label_no; +/* Assign unique numbers to labels generated for profiling, debugging, etc. */ +static int funcdef_no; /* These variables hold pointers to functions to create and destroy target specific, per-function data structures. */ @@ -6292,6 +6292,8 @@ prepare_function_start () current_function_outgoing_args_size = 0; + current_function_funcdef_no = funcdef_no++; + cfun->arc_profile = profile_arc_flag || flag_test_coverage; cfun->arc_profile = profile_arc_flag || flag_test_coverage; @@ -6669,9 +6671,8 @@ expand_function_start (subr, parms_have_cleanups) if (current_function_profile) { - current_function_profile_label_no = profile_label_no++; #ifdef PROFILE_HOOK - PROFILE_HOOK (current_function_profile_label_no); + PROFILE_HOOK (current_function_funcdef_no); #endif } -- cgit v1.2.1