]> granicus.if.org Git - clang/commitdiff
XCore target has -fno-use-cxa-atexit as default.
authorRobert Lytton <robert@xmos.com>
Tue, 12 Nov 2013 10:09:22 +0000 (10:09 +0000)
committerRobert Lytton <robert@xmos.com>
Tue, 12 Nov 2013 10:09:22 +0000 (10:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194460 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/xcore-opts.c

index c69ad53360f5d5fdcb37af1fcfc144f4e16e8307..03459f0ba7aa9ec29d2fa019ed98a09f3812faa5 100644 (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");
 
index 5197da7f7301b6486321f6be04ccc5f347a63c6a..10d8da172d4ac268aa474f4c96f7ae9cc593f777 100644 (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"