]> granicus.if.org Git - clang/commitdiff
Assume ARMv6 for NetBSD for now for strex/ldrex.
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 2 Dec 2013 16:12:05 +0000 (16:12 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Mon, 2 Dec 2013 16:12:05 +0000 (16:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196115 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index b71bc8b0639a2c77ea803ad08e56eb0570bef235..3b6cfb2790da662a603b603481afef753e814b6b 100644 (file)
@@ -3679,6 +3679,7 @@ class ARMTargetInfo : public TargetInfo {
     // it is safe to use atomic instructions on armv6 and newer.
     if (!T.isOSLinux() &&
         T.getOS() != llvm::Triple::FreeBSD &&
+        T.getOS() != llvm::Triple::NetBSD &&
         T.getOS() != llvm::Triple::Bitrig)
       return false;
     StringRef ArchName = T.getArchName();