OSDN Git Service

[PowerPC] Fix PR17354: Generate nop after local calls for PIC code.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 26 Sep 2013 17:09:28 +0000 (17:09 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 26 Sep 2013 17:09:28 +0000 (17:09 +0000)
commitdaf6b948b98b886f5f0fba130e91e01c9ca7c2f2
treebebc064f60ea8772027d050388b0fc18b8b10758
parent6c73cf5a8aef28e4274a0d843940fdee0d9f7329
[PowerPC] Fix PR17354: Generate nop after local calls for PIC code.

When generating code for shared libraries, even local calls may be
intercepted, so we need a nop after the call for the linker to fix up the
TOC.  Test case adapted from the one provided in PR17354.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191440 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/pr17354.ll [new file with mode: 0644]