From: Paul Brook Date: Mon, 15 Mar 2004 15:30:58 +0000 (+0000) Subject: * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp. X-Git-Tag: releases/gcc-4.0.0~9398 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=983e64842fe8236e78dc11f6d0f569a224f0767f;p=thirdparty%2Fgcc.git * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp. From-SVN: r79496 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 365cd54814a6..29cc5e4b1301 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-03-15 Paul Brook + + * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp. + 2004-03-15 Gabriel Dos Reis * c-pretty-print.c (pp_c_semicolon): Fix formatting. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 4cada0c10ebc..af59d8328b18 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -13110,6 +13110,12 @@ thumb_expand_prologue (void) REG_NOTES (insn)); } } + /* If the frame pointer is needed, emit a special barrier that + will prevent the scheduler from moving stores to the frame + before the stack adjustment. */ + if (frame_pointer_needed) + emit_insn (gen_stack_tie (stack_pointer_rtx, + hard_frame_pointer_rtx)); } if (current_function_profile || TARGET_NO_SCHED_PRO)