Commit b86ba8a3 by Andrea Tarani Committed by Bernardo Innocenti

m68k.c (m68k_save_reg): Also save A5 for non-leaf functions when -mid-shared-library is being used.

	* config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
	functions when -mid-shared-library is being used.

From-SVN: r95487
parent 0179f2c6
2005-02-24 Andrea Tarani <andrea.tarani@gilbarco.com>
* config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
functions when -mid-shared-library is being used.
2005-02-23 Daniel Jacobowitz <dan@codesourcery.com>
* doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
......
......@@ -371,9 +371,13 @@ m68k_initial_elimination_offset (int from, int to)
static bool
m68k_save_reg (unsigned int regno, bool interrupt_handler)
{
if (flag_pic && current_function_uses_pic_offset_table
&& regno == PIC_OFFSET_TABLE_REGNUM)
return true;
if (flag_pic && regno == PIC_OFFSET_TABLE_REGNUM)
{
if (current_function_uses_pic_offset_table)
return true;
if (!current_function_is_leaf && TARGET_ID_SHARED_LIBRARY)
return true;
}
if (current_function_calls_eh_return)
{
......
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