re PR target/6413 (PROFILE_HOOK label_no)
authorAlan Modra <amodra@bigpond.net.au>
Tue, 23 Apr 2002 07:20:55 +0000 (07:20 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 23 Apr 2002 07:20:55 +0000 (16:50 +0930)
commitf6f315fe1143ddf98f1eb66becabbb10aa92e0a3
treefdb47569e86fdbcfcd516dea2f4adaa666e43043
parent878a19ebe2b42ac126f62e4f3d3d2d70f0be26c2
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
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/pa/pa.c
gcc/config/pa/pa.h
gcc/final.c
gcc/function.c
gcc/function.h
gcc/output.h