[hexagon] restore -fuse-cxa-atexit by default
authorBrian Cain <bcain@codeaurora.org>
Fri, 17 Aug 2018 03:53:51 +0000 (03:53 +0000)
committerBrian Cain <bcain@codeaurora.org>
Fri, 17 Aug 2018 03:53:51 +0000 (03:53 +0000)
"-fno-use-cxa-atexit" was a default provided by the initial
commit offering hexagon support.  This is no longer required.

Reviewers: bcahoon, sidneym

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D50816

llvm-svn: 339979

clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/cxa-atexit.cpp

index 430a072a91ed7bb9bcea1c576e97ed792f8e1a3b..98ca6b61b2f15b07046f5ece62d9f2ede3dba6c2 100644 (file)
@@ -4225,7 +4225,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
           options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
           !RawTriple.isOSWindows() &&
               RawTriple.getOS() != llvm::Triple::Solaris &&
-              getToolChain().getArch() != llvm::Triple::hexagon &&
               getToolChain().getArch() != llvm::Triple::xcore &&
               ((RawTriple.getVendor() != llvm::Triple::MipsTechnologies) ||
                RawTriple.hasEnvironment())) ||
index cc5f68b9a474d87563bf69e47b4f7e952b51cc9f..ae955ea5a7dfc9ebbe42a7e19a24029a41018236 100644 (file)
@@ -20,7 +20,7 @@
 
 // CHECK-WINDOWS: "-fno-use-cxa-atexit"
 // CHECK-SOLARIS: "-fno-use-cxa-atexit"
-// CHECK-HEXAGON: "-fno-use-cxa-atexit"
+// CHECK-HEXAGON-NOT: "-fno-use-cxa-atexit"
 // CHECK-XCORE: "-fno-use-cxa-atexit"
 // CHECK-MTI: "-fno-use-cxa-atexit"
 // CHECK-MIPS-NOT: "-fno-use-cxa-atexit"