* config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
authorPaul Brook <paul@codesourcery.com>
Mon, 15 Mar 2004 15:30:58 +0000 (15:30 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Mon, 15 Mar 2004 15:30:58 +0000 (15:30 +0000)
From-SVN: r79496

gcc/ChangeLog
gcc/config/arm/arm.c

index 365cd54..29cc5e4 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-15  Paul Brook  <paul@codesourcery.com>
+
+       * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
+
 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * c-pretty-print.c (pp_c_semicolon): Fix formatting.
index 4cada0c..af59d83 100644 (file)
@@ -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)