Fix previous mis-applied patch.

* config/m68k/m68k.md (m68k_output_function_prologue): Always call
	dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
	when frame_pointer_needed.

From-SVN: r108801
This commit is contained in:
Paul Brook 2005-12-19 18:08:13 +00:00
parent 2f201ba050
commit b214e1e755

View File

@ -599,10 +599,10 @@ m68k_output_function_prologue (FILE *stream,
{
if (frame_pointer_needed)
{
cfa_offset += current_frame.size + 4;
char *l;
l = (char *) dwarf2out_cfi_label ();
cfa_offset += 4; + dwarf2out_reg_save (l, FRAME_POINTER_REGNUM, -cfa_offset);
cfa_offset += 4;
dwarf2out_reg_save (l, FRAME_POINTER_REGNUM, -cfa_offset);
dwarf2out_def_cfa (l, FRAME_POINTER_REGNUM, cfa_offset);
cfa_offset += current_frame.size;
}