r228739 - [PowerPC] Remove the --no-tls-optimize workaround from the clang driver
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Tue Feb 10 12:36:08 PST 2015
Author: wschmidt
Date: Tue Feb 10 14:36:08 2015
New Revision: 228739
URL: http://llvm.org/viewvc/llvm-project?rev=228739&view=rev
Log:
[PowerPC] Remove the --no-tls-optimize workaround from the clang driver
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/ppc-features.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=228739&r1=228738&r2=228739&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Feb 10 14:36:08 2015
@@ -7631,13 +7631,6 @@ void gnutools::Link::ConstructJob(Compil
D.DyldPrefix + getLinuxDynamicLinker(Args, ToolChain)));
}
- // Work around a bug in GNU ld (and gold) linker versions up to 2.25
- // that may mis-optimize code generated by this version of clang/LLVM
- // to access general-dynamic or local-dynamic TLS variables.
- if (ToolChain.getArch() == llvm::Triple::ppc64 ||
- ToolChain.getArch() == llvm::Triple::ppc64le)
- CmdArgs.push_back("--no-tls-optimize");
-
CmdArgs.push_back("-o");
CmdArgs.push_back(Output.getFilename());
Modified: cfe/trunk/test/Driver/ppc-features.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/ppc-features.cpp?rev=228739&r1=228738&r2=228739&view=diff
==============================================================================
--- cfe/trunk/test/Driver/ppc-features.cpp (original)
+++ cfe/trunk/test/Driver/ppc-features.cpp Tue Feb 10 14:36:08 2015
@@ -132,10 +132,8 @@
// linker features
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK_BE_LD_ARGS %s
// CHECK_BE_LD_ARGS: "elf64ppc"
-// CHECK_BE_LD_ARGS: "--no-tls-optimize"
// RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK_LE_LD_ARGS %s
// CHECK_LE_LD_ARGS: "elf64lppc"
-// CHECK_LE_LD_ARGS: "--no-tls-optimize"
More information about the cfe-commits
mailing list