XCore target has -fno-use-cxa-atexit as default.
llvm-svn: 194460
This commit is contained in:
parent
b2c8cdc766
commit
6b1deb4cf9
|
@ -3220,7 +3220,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
|
||||
getToolChain().getArch() != llvm::Triple::hexagon) ||
|
||||
getToolChain().getArch() != llvm::Triple::hexagon &&
|
||||
getToolChain().getArch() != llvm::Triple::xcore) ||
|
||||
KernelOrKext)
|
||||
CmdArgs.push_back("-fno-use-cxa-atexit");
|
||||
|
||||
|
|
|
@ -4,9 +4,10 @@
|
|||
// CHECK: "-momit-leaf-frame-pointer"
|
||||
// CHECK-NOT: "-mdisable-fp-elim"
|
||||
// CHECK: "-fno-signed-char"
|
||||
// CHECK: "-fno-use-cxa-atexit"
|
||||
// CHECK: "-fno-common"
|
||||
// CHECH: xcc" "-o"
|
||||
// CHECK: "-c" "-g" "A1Arg" "A2Arg"
|
||||
// CHECK: xcc" "-o"
|
||||
// CHEXK: "L1Arg" "L2Arg"
|
||||
// CHECK: "L1Arg" "L2Arg"
|
||||
|
||||
|
|
Loading…
Reference in New Issue