Commit 4f44ecc0 by Richard Sandiford Committed by Richard Sandiford

m68k.c (m68k_save_reg): Remove special case for leaf functions.

gcc/
	* config/m68k/m68k.c (m68k_save_reg): Remove special case for
	leaf functions.
	(m68k_expand_prologue): Likewise.

From-SVN: r122608
parent f7e70894
2007-03-06 Richard Sandiford <richard@codesourcery.com> 2007-03-06 Richard Sandiford <richard@codesourcery.com>
* config/m68k/m68k.c (m68k_save_reg): Remove special case for
leaf functions.
(m68k_expand_prologue): Likewise.
2007-03-06 Richard Sandiford <richard@codesourcery.com>
* config/m68k/m68k-protos.h (output_sibcall): Declare. * config/m68k/m68k-protos.h (output_sibcall): Declare.
(mips_expand_epilogue): Add a bool parameter. (mips_expand_epilogue): Add a bool parameter.
(m68k_legitimize_sibcall_address): Declare. (m68k_legitimize_sibcall_address): Declare.
......
...@@ -749,8 +749,6 @@ m68k_save_reg (unsigned int regno, bool interrupt_handler) ...@@ -749,8 +749,6 @@ m68k_save_reg (unsigned int regno, bool interrupt_handler)
{ {
if (current_function_uses_pic_offset_table) if (current_function_uses_pic_offset_table)
return true; return true;
if (!current_function_is_leaf && TARGET_ID_SHARED_LIBRARY)
return true;
} }
if (current_function_calls_eh_return) if (current_function_calls_eh_return)
...@@ -996,8 +994,7 @@ m68k_expand_prologue (void) ...@@ -996,8 +994,7 @@ m68k_expand_prologue (void)
if (flag_pic if (flag_pic
&& !TARGET_SEP_DATA && !TARGET_SEP_DATA
&& (current_function_uses_pic_offset_table && current_function_uses_pic_offset_table)
|| (!current_function_is_leaf && TARGET_ID_SHARED_LIBRARY)))
{ {
insn = emit_insn (gen_load_got (pic_offset_table_rtx)); insn = emit_insn (gen_load_got (pic_offset_table_rtx));
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD, REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment