Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 16:53:04 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269387 - head/contrib/llvm/tools/clang/lib/Driver
Message-ID:  <201408011653.s71Gr4fm090517@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Fri Aug  1 16:53:04 2014
New Revision: 269387
URL: http://svnweb.freebsd.org/changeset/base/269387

Log:
  Update the ARMv6 core clang targets to be an arm1176jzf-s. This brings us
  in line with gcc in base as this makes llvm generate code for the armv6k
  variant of the instruction set.

Modified:
  head/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
  head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp

Modified: head/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp	Fri Aug  1 15:17:46 2014	(r269386)
+++ head/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp	Fri Aug  1 16:53:04 2014	(r269387)
@@ -183,7 +183,8 @@ static const char *getARMTargetCPU(const
     MArch = Triple.getArchName();
   }
 
-  if (Triple.getOS() == llvm::Triple::NetBSD) {
+  if (Triple.getOS() == llvm::Triple::NetBSD ||
+      Triple.getOS() == llvm::Triple::FreeBSD) {
     if (MArch == "armv6")
       return "arm1176jzf-s";
   }

Modified: head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp	Fri Aug  1 15:17:46 2014	(r269386)
+++ head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp	Fri Aug  1 16:53:04 2014	(r269387)
@@ -499,7 +499,8 @@ static std::string getARMTargetCPU(const
     MArch = Triple.getArchName();
   }
 
-  if (Triple.getOS() == llvm::Triple::NetBSD) {
+  if (Triple.getOS() == llvm::Triple::NetBSD ||
+      Triple.getOS() == llvm::Triple::FreeBSD) {
     if (MArch == "armv6")
       return "arm1176jzf-s";
   }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408011653.s71Gr4fm090517>