Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/gnu/dist/toolchain/gcc/config/m68k Pull up revision 1.3...



details:   https://anonhg.NetBSD.org/src/rev/96894aab5e33
branches:  netbsd-1-6
changeset: 531354:96894aab5e33
user:      tron <tron%NetBSD.org@localhost>
date:      Wed May 26 14:06:27 2004 +0000

description:
Pull up revision 1.3 (requested by skrll in ticket #1699):
Fix a bug WRT -vomit-frame-pointer -- use_return_insn() must return false if
we saved the GOT pointer register.
Note: This is already fixed in the GCC 3 sources, but GCC 3 uses a different
condition to determine whether to save and restore the register, so the patch
cannot be the same.

diffstat:

 gnu/dist/toolchain/gcc/config/m68k/m68k.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 0e4f71bd90e7 -r 96894aab5e33 gnu/dist/toolchain/gcc/config/m68k/m68k.c
--- a/gnu/dist/toolchain/gcc/config/m68k/m68k.c Wed May 26 14:02:31 2004 +0000
+++ b/gnu/dist/toolchain/gcc/config/m68k/m68k.c Wed May 26 14:06:27 2004 +0000
@@ -494,6 +494,9 @@
   for (regno = 0 ; regno < FIRST_PSEUDO_REGISTER ; regno++)
     if (regs_ever_live[regno] && ! call_used_regs[regno])
       return 0;
+
+  if (flag_pic && regs_ever_live[PIC_OFFSET_TABLE_REGNUM])
+    return 0;
   
   return 1;
 }



Home | Main Index | Thread Index | Old Index