From: Bill Schmidt Date: Tue, 10 Feb 2015 20:36:08 +0000 (+0000) Subject: [PowerPC] Remove the --no-tls-optimize workaround from the clang driver X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af10efb26dacb672b9a41af8d35b09e32872236e;p=clang [PowerPC] Remove the --no-tls-optimize workaround from the clang driver git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228739 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index adea922e80..d22bebe54e 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -7631,13 +7631,6 @@ void gnutools::Link::ConstructJob(Compilation &C, const JobAction &JA, 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()); diff --git a/test/Driver/ppc-features.cpp b/test/Driver/ppc-features.cpp index feecf3ceed..39d6357dcc 100644 --- a/test/Driver/ppc-features.cpp +++ b/test/Driver/ppc-features.cpp @@ -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"