Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/mips Fix http://gcc.gnu.or...



details:   https://anonhg.NetBSD.org/src/rev/0c092e12a099
branches:  trunk
changeset: 326357:0c092e12a099
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Jan 26 21:26:02 2014 +0000

description:
Fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57260 (patch from
gcc's repository). This bugs show up with Xorg, preventing  xf86-video-sis and
xf86-video-silicon modules from being loaded.

diffstat:

 external/gpl3/gcc/dist/gcc/config/mips/mips.c |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r ca1005b6ebe0 -r 0c092e12a099 external/gpl3/gcc/dist/gcc/config/mips/mips.c
--- a/external/gpl3/gcc/dist/gcc/config/mips/mips.c     Sun Jan 26 21:22:49 2014 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/mips/mips.c     Sun Jan 26 21:26:02 2014 +0000
@@ -6522,6 +6522,15 @@
       && const_call_insn_operand (XEXP (DECL_RTL (decl), 0), VOIDmode))
     return false;
 
+   /* Sibling calls should not prevent lazy binding.  Lazy-binding stubs
+      require $gp to be valid on entry, so sibcalls can only use stubs
+      if $gp is call-clobbered.  */
+   if (decl
+       && TARGET_CALL_SAVED_GP
+       && !TARGET_ABICALLS_PIC0
+       && !targetm.binds_local_p (decl))
+     return false;
+
   /* Otherwise OK.  */
   return true;
 }



Home | Main Index | Thread Index | Old Index