svn commit: r559037 - in head/devel/llvm10: . files/clang

Piotr Kubaj pkubaj at FreeBSD.org
Thu Dec 24 00:29:25 UTC 2020


Author: pkubaj
Date: Thu Dec 24 00:29:24 2020
New Revision: 559037
URL: https://svnweb.freebsd.org/changeset/ports/559037

Log:
  devel/llvm10: fix libllvm runtime on powerpc64 head
  
  llvmpipe on powerpc64 head is broken without this.
  
  This patch seems to have been droppen after llvm90

Added:
  head/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
     - copied unchanged from r558867, head/devel/llvm90/files/ppc64-elfv2/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
Modified:
  head/devel/llvm10/Makefile

Modified: head/devel/llvm10/Makefile
==============================================================================
--- head/devel/llvm10/Makefile	Wed Dec 23 23:38:29 2020	(r559036)
+++ head/devel/llvm10/Makefile	Thu Dec 24 00:29:24 2020	(r559037)
@@ -2,7 +2,7 @@
 
 PORTNAME=	llvm
 DISTVERSION=	10.0.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel lang
 MASTER_SITES=	https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
 		https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}

Copied: head/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp (from r558867, head/devel/llvm90/files/ppc64-elfv2/patch-lib_Target_PowerPC_PPCTargetMachine.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp	Thu Dec 24 00:29:24 2020	(r559037, copy of r558867, head/devel/llvm90/files/ppc64-elfv2/patch-lib_Target_PowerPC_PPCTargetMachine.cpp)
@@ -0,0 +1,23 @@
+--- lib/Target/PowerPC/PPCTargetMachine.cpp.orig	2019-07-04 07:43:51 UTC
++++ lib/Target/PowerPC/PPCTargetMachine.cpp
+@@ -209,6 +209,20 @@ static PPCTargetMachine::PPCABI computeTargetABI(const
+   if (TT.isMacOSX())
+     return PPCTargetMachine::PPC_ABI_UNKNOWN;
+ 
++  if (TT.isOSFreeBSD()) {
++    switch (TT.getArch()) {
++    case Triple::ppc64le:
++    case Triple::ppc64:
++      if (TT.getOSMajorVersion() >= 13)
++        return PPCTargetMachine::PPC_ABI_ELFv2;
++      else
++        return PPCTargetMachine::PPC_ABI_ELFv1;
++    case Triple::ppc:
++    default:
++      return PPCTargetMachine::PPC_ABI_UNKNOWN;
++    }
++  }
++
+   switch (TT.getArch()) {
+   case Triple::ppc64le:
+     return PPCTargetMachine::PPC_ABI_ELFv2;


More information about the svn-ports-all mailing list