From d2ff90cc580c62afb8528917c1c80ac49d9aaa01 Mon Sep 17 00:00:00 2001 From: kan Date: Tue, 14 Aug 2007 02:45:23 +0000 Subject: GCC 4.2.1 release. --- contrib/gcc/function.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/gcc/function.c') diff --git a/contrib/gcc/function.c b/contrib/gcc/function.c index 5e43484..ca88e0b 100644 --- a/contrib/gcc/function.c +++ b/contrib/gcc/function.c @@ -5076,6 +5076,14 @@ thread_prologue_and_epilogue_insns (rtx f ATTRIBUTE_UNUSED) /* Retain a map of the prologue insns. */ record_insns (seq, &prologue); prologue_end = emit_note (NOTE_INSN_PROLOGUE_END); + +#ifndef PROFILE_BEFORE_PROLOGUE + /* Ensure that instructions are not moved into the prologue when + profiling is on. The call to the profiling routine can be + emitted within the live range of a call-clobbered register. */ + if (current_function_profile) + emit_insn (gen_rtx_ASM_INPUT (VOIDmode, "")); +#endif seq = get_insns (); end_sequence (); -- cgit v1.1