Skip to content

Commit d6a76f7

Browse files
committedAug 17, 2018
[hexagon] restore -fuse-cxa-atexit by default
"-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
1 parent 21d4a1e commit d6a76f7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

Diff for: ‎clang/lib/Driver/ToolChains/Clang.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -4225,7 +4225,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
42254225
options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
42264226
!RawTriple.isOSWindows() &&
42274227
RawTriple.getOS() != llvm::Triple::Solaris &&
4228-
getToolChain().getArch() != llvm::Triple::hexagon &&
42294228
getToolChain().getArch() != llvm::Triple::xcore &&
42304229
((RawTriple.getVendor() != llvm::Triple::MipsTechnologies) ||
42314230
RawTriple.hasEnvironment())) ||

Diff for: ‎clang/test/Driver/cxa-atexit.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// CHECK-WINDOWS: "-fno-use-cxa-atexit"
2222
// CHECK-SOLARIS: "-fno-use-cxa-atexit"
23-
// CHECK-HEXAGON: "-fno-use-cxa-atexit"
23+
// CHECK-HEXAGON-NOT: "-fno-use-cxa-atexit"
2424
// CHECK-XCORE: "-fno-use-cxa-atexit"
2525
// CHECK-MTI: "-fno-use-cxa-atexit"
2626
// CHECK-MIPS-NOT: "-fno-use-cxa-atexit"

0 commit comments

Comments
 (0)
Please sign in to comment.