Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils/dist/bfd Tail calls can use the PLT w...



details:   https://anonhg.NetBSD.org/src/rev/c2606767e78b
branches:  trunk
changeset: 348719:c2606767e78b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Nov 04 00:19:32 2016 +0000

description:
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/dist/bfd/elf64-ppc.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 5703ca46f995 -r c2606767e78b external/gpl3/binutils/dist/bfd/elf64-ppc.c
--- a/external/gpl3/binutils/dist/bfd/elf64-ppc.c       Thu Nov 03 22:23:03 2016 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf64-ppc.c       Fri Nov 04 00:19:32 2016 +0000
@@ -14069,6 +14069,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