summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorcchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-06 01:23:13 +0000
committercchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-06 01:23:13 +0000
commit104d98619f1d3268984c5c6ae36b6872e22ce62c (patch)
treeb7d306e1aa3339f74147d38e1d9fb9b6ebffe031 /gcc/function.c
parent4cd470f2036b765cfeab3880cf8ba8779cda8016 (diff)
downloadgcc-104d98619f1d3268984c5c6ae36b6872e22ce62c.tar.gz
* final.c: Move the declaration profile_label_no to ...
* output.h: ... here. * function.c (expand_function_start): Call PROFILE_HOOK. * config/rs6000/aix.h: Define PROFILE_HOOK. * config/rs6000/rs6000-protos.h: output_profile_hook new. * config/rs6000/rs6000.c (output_profile_hook): Define. (output_prolog): Do nothing for ABI_AIX as it is taken care by output_profile_hook. tm.texi : Explain new macro PROFILE_HOOK. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39473 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index e6d56f01ba1..5421450c4a8 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -6471,6 +6471,11 @@ expand_function_start (subr, parms_have_cleanups)
Pmode);
}
+#ifdef PROFILE_HOOK
+ if (profile_flag)
+ PROFILE_HOOK (profile_label_no);
+#endif
+
/* After the display initializations is where the tail-recursion label
should go, if we end up needing one. Ensure we have a NOTE here
since some things (like trampolines) get placed before this. */