aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-06-17 10:47:22 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-06-17 10:47:22 -0700
commitdf696a75734ea7998d0d5ef75cbafba8be33c908 (patch)
tree4ca10c66a1de94288a6165a609e02cc9122faba6 /gcc/function.c
parent10cb24df3afa7fa83fecf6c00e7c8f561ffb925c (diff)
downloadgcc-df696a75734ea7998d0d5ef75cbafba8be33c908.zip
gcc-df696a75734ea7998d0d5ef75cbafba8be33c908.tar.gz
gcc-df696a75734ea7998d0d5ef75cbafba8be33c908.tar.bz2
function.h (struct function): Rename profile_label_no.
* 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. From-SVN: r54709
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 8c0c6c5..4a963dc 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
}