aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-02-27 19:29:02 -0500
committerDJ Delorie <dj@gcc.gnu.org>2001-02-27 19:29:02 -0500
commit67935d3f86b738dcd382bedbb4373de98e1f9759 (patch)
treeba927cb2d24ad1e32251d8aeadf85fb56da82bd8 /gcc
parenta29456b52430517f132adc125eb62b7252aeae9a (diff)
downloadgcc-67935d3f86b738dcd382bedbb4373de98e1f9759.zip
gcc-67935d3f86b738dcd382bedbb4373de98e1f9759.tar.gz
gcc-67935d3f86b738dcd382bedbb4373de98e1f9759.tar.bz2
m68k.c (output_function_prologue): Save the new CFA register, *then* define it as the new CFA.
* config/m68k/m68k.c (output_function_prologue): Save the new CFA register, *then* define it as the new CFA. From-SVN: r40104
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 453fe02..bf6e7c5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 430e618..0ef6332 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -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;
}
}