OSDN Git Service

* config/m68k/m68k.c (use_return_insn): Return false if the pic
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Oct 1999 10:44:28 +0000 (10:44 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Oct 1999 10:44:28 +0000 (10:44 +0000)
register is in use.

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

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

index 9a285d7..938676d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct  1 12:42:53 1999  Andreas Schwab  <schwab@suse.de>
+
+       * config/m68k/m68k.c (use_return_insn): Return false if the pic
+       register is in use.
+
 Fri Oct  1 10:56:06 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        * md.texi (No Constraints): Delete section.
index c2cc4ee..f718ccd 100644 (file)
@@ -493,7 +493,10 @@ use_return_insn ()
   for (regno = 0 ; regno < FIRST_PSEUDO_REGISTER ; regno++)
     if (regs_ever_live[regno] && ! call_used_regs[regno])
       return 0;
-  
+
+  if (flag_pic && current_function_uses_pic_offset_table)
+    return 0;
+
   return 1;
 }