aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1999-10-01 10:44:28 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>1999-10-01 10:44:28 +0000
commit125ed86feeffeda31ff6e48de336ca3c68cb7474 (patch)
tree3f90f56ee1021c940dbf304bd13528b01f047360
parent3cf965b7f6c57a8c3db3c261dbfa1f121e1c8aa8 (diff)
downloadgcc-125ed86feeffeda31ff6e48de336ca3c68cb7474.zip
gcc-125ed86feeffeda31ff6e48de336ca3c68cb7474.tar.gz
gcc-125ed86feeffeda31ff6e48de336ca3c68cb7474.tar.bz2
m68k.c (use_return_insn): Return false if the pic register is in use.
* config/m68k/m68k.c (use_return_insn): Return false if the pic register is in use. From-SVN: r29755
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a285d7..938676d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index c2cc4ee..f718ccd 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -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;
}