m68k.c (m68k_use_return_insn): Update comments before function.
gcc/ * config/m68k/m68k.c (m68k_use_return_insn): Update comments before function. Extend register save check to include all registers, not just integer ones. From-SVN: r120927
This commit is contained in:
parent
a2bda628bf
commit
413ac1b28d
|
@ -1,3 +1,9 @@
|
||||||
|
2007-01-18 Richard Sandiford <richard@codesourcery.com>
|
||||||
|
|
||||||
|
* config/m68k/m68k.c (m68k_use_return_insn): Update comments
|
||||||
|
before function. Extend register save check to include all
|
||||||
|
registers, not just integer ones.
|
||||||
|
|
||||||
2007-01-18 Kazu Hirata <kazu@codesourcery.com>
|
2007-01-18 Kazu Hirata <kazu@codesourcery.com>
|
||||||
|
|
||||||
* config/m68k/m68k-protos.h (use_return_insn): Rename to...
|
* config/m68k/m68k-protos.h (use_return_insn): Rename to...
|
||||||
|
|
|
@ -1019,7 +1019,8 @@ m68k_output_function_prologue (FILE *stream,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return true if this function's epilogue can be output as RTL. */
|
/* Return true if a simple (return) instruction is sufficient for this
|
||||||
|
instruction (i.e. if no epilogue is needed). */
|
||||||
|
|
||||||
bool
|
bool
|
||||||
m68k_use_return_insn (void)
|
m68k_use_return_insn (void)
|
||||||
|
@ -1027,10 +1028,8 @@ m68k_use_return_insn (void)
|
||||||
if (!reload_completed || frame_pointer_needed || get_frame_size () != 0)
|
if (!reload_completed || frame_pointer_needed || get_frame_size () != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* We can output the epilogue as RTL only if no registers need to be
|
|
||||||
restored. */
|
|
||||||
m68k_compute_frame_layout ();
|
m68k_compute_frame_layout ();
|
||||||
return current_frame.reg_no ? false : true;
|
return current_frame.offset == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function generates the assembly code for function exit,
|
/* This function generates the assembly code for function exit,
|
||||||
|
|
Loading…
Reference in New Issue