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
This commit is contained in:
DJ Delorie 2001-02-27 19:29:02 -05:00 committed by DJ Delorie
parent a29456b524
commit 67935d3f86
2 changed files with 6 additions and 1 deletions

View 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.

View 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;
}
}