Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2019 16:57:12 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch
Message-ID:  <201910231657.x9NGvCMD039111@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Oct 23 16:57:11 2019
New Revision: 353936
URL: https://svnweb.freebsd.org/changeset/base/353936

Log:
  Bump clang's default target CPU for the i386 architecture (aka "x86") to
  i686, as per the discussion on the freebsd-arch mailing list.  Earlier
  in r352030, I had already bumped it to i586, to work around missing
  atomic 64 bit functions for the i386 architecture.
  
  Relnotes:	yes

Modified:
  head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/X86.cpp

Modified: head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/X86.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/X86.cpp	Wed Oct 23 16:53:37 2019	(r353935)
+++ head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/X86.cpp	Wed Oct 23 16:57:11 2019	(r353936)
@@ -93,10 +93,11 @@ const char *x86::getX86TargetCPU(const ArgList &Args,
     return "x86-64";
 
   switch (Triple.getOS()) {
+  case llvm::Triple::FreeBSD:
+    return "i686";
   case llvm::Triple::NetBSD:
   case llvm::Triple::OpenBSD:
-    return "i486"; 
-  case llvm::Triple::FreeBSD:
+    return "i486";
   case llvm::Triple::Haiku:
     return "i586";
   default:



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