Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils.old/dist/bfd Merge r1.11 from the mai...



details:   https://anonhg.NetBSD.org/src/rev/575367f6e7c6
branches:  trunk
changeset: 818914:575367f6e7c6
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Nov 06 23:44:44 2016 +0000

description:
Merge r1.11 from the main in-tree binutils version:
Tail calls can use the PLT without a nop after the branch. Since the
callee won't return to the next instruction anyway, it wouldn't work
anyway.

diffstat:

 external/gpl3/binutils.old/dist/bfd/elf64-ppc.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 2ab28ef76423 -r 575367f6e7c6 external/gpl3/binutils.old/dist/bfd/elf64-ppc.c
--- a/external/gpl3/binutils.old/dist/bfd/elf64-ppc.c   Sun Nov 06 21:51:31 2016 +0000
+++ b/external/gpl3/binutils.old/dist/bfd/elf64-ppc.c   Sun Nov 06 23:44:44 2016 +0000
@@ -14056,6 +14056,11 @@
                          can_plt_call = TRUE;
                        }
                    }
+                 else
+                   {
+                     /* Tail calls don't need to worry about restoring TOC. */
+                     can_plt_call = TRUE;
+                   }
                }
 
              if (!can_plt_call && h != NULL)



Home | Main Index | Thread Index | Old Index