Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2019 20:35:53 +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: r354984 - head/contrib/llvm/tools/clang/lib/Basic/Targets
Message-ID:  <201911212035.xALKZrtU077954@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Nov 21 20:35:53 2019
New Revision: 354984
URL: https://svnweb.freebsd.org/changeset/base/354984

Log:
  Merge commit 0d14656b9 from llvm git (by Simon Atanasyan):
  
    [mips] Set __OCTEON__ macros
  
  This is one of the upstream changes needed for adding support for the
  OCTEON+ CPU type, so that we can test Clang builds using the most
  commonly available FreeBSD/mips64 reference platform, the Edge Router
  Lite.
  
  Requested by:	kevans
  MFC after:	1 month
  X-MFC-With:	r353358

Modified:
  head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp

Modified: head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp	Thu Nov 21 20:32:34 2019	(r354983)
+++ head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp	Thu Nov 21 20:35:53 2019	(r354984)
@@ -190,6 +190,9 @@ void MipsTargetInfo::getTargetDefines(const LangOption
   Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\"");
   Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper());
 
+  if (StringRef(CPU).startswith("octeon"))
+    Builder.defineMacro("__OCTEON__");
+
   // These shouldn't be defined for MIPS-I but there's no need to check
   // for that since MIPS-I isn't supported.
   Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1");



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