From e2c3cc81d7b61b33dac7f34a4b2b8f142f1769c5 Mon Sep 17 00:00:00 2001 From: kan Date: Tue, 14 Aug 2007 03:04:42 +0000 Subject: Update locally changed files to GCC 4.2.1. Approved by: re (kensmith) --- 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 d0c383e..7549ec4 100644 --- a/contrib/gcc/function.c +++ b/contrib/gcc/function.c @@ -5093,6 +5093,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