From: DJ Delorie Date: Wed, 28 Feb 2001 00:29:02 +0000 (-0500) Subject: m68k.c (output_function_prologue): Save the new CFA register, *then* define it as... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67935d3f86b738dcd382bedbb4373de98e1f9759;p=gcc.git 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 --- 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; } }