aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-04-23 07:20:55 +0000
committerAlan Modra <amodra@gcc.gnu.org>2002-04-23 16:50:55 +0930
commitf6f315fe1143ddf98f1eb66becabbb10aa92e0a3 (patch)
treefdb47569e86fdbcfcd516dea2f4adaa666e43043 /gcc/function.h
parent878a19ebe2b42ac126f62e4f3d3d2d70f0be26c2 (diff)
downloadgcc-f6f315fe1143ddf98f1eb66becabbb10aa92e0a3.zip
gcc-f6f315fe1143ddf98f1eb66becabbb10aa92e0a3.tar.gz
gcc-f6f315fe1143ddf98f1eb66becabbb10aa92e0a3.tar.bz2
re PR target/6413 (PROFILE_HOOK label_no)
PR target/6413 * function.h: (struct function): Add profile_label_no field. (current_function_profile_label_no): Define. * function.c: (profile_label_no): New static var. (expand_function_start): Increment it, and copy to current_function_profile_label_no. * output.h (profile_label_no): Delete. * final.c (profile_label_no): Delete. (profile_function): Use current_function_profile_label_no. (final_end_function): Don't increment profile_label_no here. * config/i386/i386.c (ix86_osf_output_function_prologue): Replace profile_label_no with current_function_profile_label_no. * config/pa/pa.c (current_function_number): Delete. (pa_output_function_prologue): Don't output profile label here. (hppa_profile_hook): Use label_no param rather than current_function_number. (FUNC_BEGIN_PROLOG_LABEL): Move to .. * config/pa/pa.h: .. here. (FUNCTION_PROFILER): Output profile label here. From-SVN: r52656
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h
index 493543d..70164f1 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -364,6 +364,9 @@ struct function
/* Highest label number in current function. */
int inl_max_label_num;
+ /* Profile label number. */
+ int profile_label_no;
+
/* For md files. */
/* tm.h can use this to store whatever it likes. */
@@ -508,6 +511,7 @@ extern int virtuals_instantiated;
#define current_function_return_rtx (cfun->return_rtx)
#define current_function_instrument_entry_exit (cfun->instrument_entry_exit)
#define current_function_profile (cfun->profile)
+#define current_function_profile_label_no (cfun->profile_label_no)
#define current_function_limit_stack (cfun->limit_stack)
#define current_function_uses_pic_offset_table (cfun->uses_pic_offset_table)
#define current_function_uses_const_pool (cfun->uses_const_pool)