XCore target has -fno-use-cxa-atexit as default.

llvm-svn: 194460
This commit is contained in:
Robert Lytton 2013-11-12 10:09:22 +00:00
parent b2c8cdc766
commit 6b1deb4cf9
2 changed files with 4 additions and 2 deletions

View File

@ -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");

View File

@ -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"