gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Mar 2007 09:00:21 +0000 (09:00 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Mar 2007 09:00:21 +0000 (09:00 +0000)
* config/m68k/m68k.c (m68k_save_reg): Remove special case for
leaf functions.
(m68k_expand_prologue): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122608 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68k/m68k.c

index ce1caab..9707639 100644 (file)
@@ -1,5 +1,11 @@
 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.
        (mips_expand_epilogue): Add a bool parameter.
        (m68k_legitimize_sibcall_address): Declare.
index 8c99d4f..e491beb 100644 (file)
@@ -749,8 +749,6 @@ m68k_save_reg (unsigned int regno, bool interrupt_handler)
     {
       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)
@@ -996,8 +994,7 @@ m68k_expand_prologue (void)
 
   if (flag_pic
       && !TARGET_SEP_DATA
-      && (current_function_uses_pic_offset_table
-         || (!current_function_is_leaf && TARGET_ID_SHARED_LIBRARY)))
+      && current_function_uses_pic_offset_table)
     {
       insn = emit_insn (gen_load_got (pic_offset_table_rtx));
       REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD,