Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2020 04:28:27 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r559048 - in head/devel: llvm10/files llvm10/files/clang llvm11/files llvm11/files/clang
Message-ID:  <202012240428.0BO4SR1W067939@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Thu Dec 24 04:28:27 2020
New Revision: 559048
URL: https://svnweb.freebsd.org/changeset/ports/559048

Log:
  devel/llvm10, devel/llvm11: move libllvm patches
  
  They are actually not related to clang, but libllvm.

Added:
  head/devel/llvm10/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
     - copied unchanged from r559047, head/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
  head/devel/llvm11/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
     - copied unchanged from r559047, head/devel/llvm11/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
Deleted:
  head/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
  head/devel/llvm11/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp

Copied: head/devel/llvm10/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp (from r559047, head/devel/llvm10/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/llvm10/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp	Thu Dec 24 04:28:27 2020	(r559048, copy of r559047, head/devel/llvm10/files/clang/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;

Copied: head/devel/llvm11/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp (from r559047, head/devel/llvm11/files/clang/patch-lib_Target_PowerPC_PPCTargetMachine.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/llvm11/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp	Thu Dec 24 04:28:27 2020	(r559048, copy of r559047, head/devel/llvm11/files/clang/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;



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