From 67935d3f86b738dcd382bedbb4373de98e1f9759 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 27 Feb 2001 19:29:02 -0500 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/m68k/m68k.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 453fe02bfc8..bf6e7c57b87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-02-27 DJ Delorie + + * 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 430e618e37e..0ef63329f89 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; } } -- 2.30.2