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/701aff40ce0c
branches:  trunk
changeset: 348772:701aff40ce0c
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 19b701007a73 -r 701aff40ce0c 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