FreeBSD Bugzilla – Attachment 213994 Details for
Bug 246092
devel/llvm90: make ELFv2 default if --target doesn't contain OS version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
llvm90.elfv2.diff (text/plain), 1.68 KB, created by
Jan Beich
on 2020-05-01 12:57:14 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2020-05-01 12:57:14 UTC
Size:
1.68 KB
patch
obsolete
>Index: devel/llvm90/Makefile >=================================================================== >--- devel/llvm90/Makefile (revision 533477) >+++ devel/llvm90/Makefile (working copy) >@@ -2,7 +2,7 @@ > > PORTNAME= llvm > DISTVERSION= 9.0.1 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= devel lang > MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION}/ > PKGNAMESUFFIX= ${LLVM_SUFFIX} >Index: devel/llvm90/files/ppc64-elfv2/patch-lib_Target_PowerPC_PPCTargetMachine.cpp >=================================================================== >--- devel/llvm90/files/ppc64-elfv2/patch-lib_Target_PowerPC_PPCTargetMachine.cpp (revision 533477) >+++ devel/llvm90/files/ppc64-elfv2/patch-lib_Target_PowerPC_PPCTargetMachine.cpp (working copy) >@@ -8,7 +8,7 @@ > + switch (TT.getArch()) { > + case Triple::ppc64le: > + case Triple::ppc64: >-+ if (TT.getOSMajorVersion() >= 13) >++ if (TT.getOSMajorVersion() == 0 || TT.getOSMajorVersion() >= 13) > + return PPCTargetMachine::PPC_ABI_ELFv2; > + else > + return PPCTargetMachine::PPC_ABI_ELFv1; >Index: devel/llvm90/files/ppc64-elfv2/patch-tools_clang_lib_Basic_Targets_PPC.h >=================================================================== >--- devel/llvm90/files/ppc64-elfv2/patch-tools_clang_lib_Basic_Targets_PPC.h (revision 533477) >+++ devel/llvm90/files/ppc64-elfv2/patch-tools_clang_lib_Basic_Targets_PPC.h (working copy) >@@ -15,7 +15,7 @@ > + } > + } else { > + if ((Triple.getOS() == llvm::Triple::FreeBSD) && >-+ (Triple.getOSMajorVersion() < 13)) { >++ (Triple.getOSMajorVersion() != 0 && Triple.getOSMajorVersion() < 13)) { > + ABI = "elfv1"; > + } else { > + ABI = "elfv2";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246092
: 213994