r194460 - XCore target has -fno-use-cxa-atexit as default.
Robert Lytton
robert at xmos.com
Tue Nov 12 02:09:23 PST 2013
Author: rlytton
Date: Tue Nov 12 04:09:22 2013
New Revision: 194460
URL: http://llvm.org/viewvc/llvm-project?rev=194460&view=rev
Log:
XCore target has -fno-use-cxa-atexit as default.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/xcore-opts.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=194460&r1=194459&r2=194460&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Nov 12 04:09:22 2013
@@ -3220,7 +3220,8 @@ void Clang::ConstructJob(Compilation &C,
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");
Modified: cfe/trunk/test/Driver/xcore-opts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/xcore-opts.c?rev=194460&r1=194459&r2=194460&view=diff
==============================================================================
--- cfe/trunk/test/Driver/xcore-opts.c (original)
+++ cfe/trunk/test/Driver/xcore-opts.c Tue Nov 12 04:09:22 2013
@@ -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"
More information about the cfe-commits
mailing list