m68k.c (output_function_prologue): Save the new CFA register, *then* define it as...
authorDJ Delorie <dj@redhat.com>
Wed, 28 Feb 2001 00:29:02 +0000 (19:29 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Wed, 28 Feb 2001 00:29:02 +0000 (19:29 -0500)
* config/m68k/m68k.c (output_function_prologue): Save the new CFA
register, *then* define it as the new CFA.

From-SVN: r40104

gcc/ChangeLog
gcc/config/m68k/m68k.c

index 453fe02bfc8e4bb7ee05bd9244ebc1827a742c95..bf6e7c57b87092351d4ebf22dc2c60295fda9fdd 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-27  DJ Delorie  <dj@redhat.com>
+
+       * config/m68k/m68k.c (output_function_prologue): Save the new CFA
+       register, *then* define it as the new CFA.
+
 Tue Feb 27 16:49:13 2001  Jeffrey A Law  (law@cygnus.com)
 
        * pa.c (override_options): Promote -fpic to -fPIC.
index 430e618e37ebdef36f6715df5b9f541765b54d05..0ef63329f89c51d7b7a1b131e194bb228ec260bb 100644 (file)
@@ -220,8 +220,8 @@ output_function_prologue (stream, size)
           l = (char *) dwarf2out_cfi_label ();   
          cfa_store_offset += 4;
          cfa_offset = cfa_store_offset;
-         dwarf2out_def_cfa (l, FRAME_POINTER_REGNUM, cfa_offset);
          dwarf2out_reg_save (l, FRAME_POINTER_REGNUM, -cfa_store_offset);
+         dwarf2out_def_cfa (l, FRAME_POINTER_REGNUM, cfa_offset);
          cfa_store_offset += fsize;
        }
     }