pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/clang/patches
Module Name: pkgsrc
Committed By: rjs
Date: Mon Oct 21 11:14:44 UTC 2019
Added Files:
pkgsrc/lang/clang/patches: patch-lib_Driver_ToolChains_NetBSD.cpp
Log Message:
Make C++ constructors work for aarch64.
Discussed here:
<http://mail-index.netbsd.org/tech-toolchain/2019/08/29/msg003611.html>
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/clang/patches/patch-lib_Driver_ToolChains_NetBSD.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/lang/clang/patches/patch-lib_Driver_ToolChains_NetBSD.cpp
diff -u /dev/null pkgsrc/lang/clang/patches/patch-lib_Driver_ToolChains_NetBSD.cpp:1.1
--- /dev/null Mon Oct 21 11:14:45 2019
+++ pkgsrc/lang/clang/patches/patch-lib_Driver_ToolChains_NetBSD.cpp Mon Oct 21 11:14:44 2019
@@ -0,0 +1,26 @@
+$NetBSD: patch-lib_Driver_ToolChains_NetBSD.cpp,v 1.1 2019/10/21 11:14:44 rjs Exp $
+
+--- lib/Driver/ToolChains/NetBSD.cpp.orig 2019-01-30 19:13:49.000000000 +0000
++++ lib/Driver/ToolChains/NetBSD.cpp
+@@ -469,10 +469,20 @@ SanitizerMask NetBSD::getSupportedSaniti
+ return Res;
+ }
+
+-void NetBSD::addClangTargetOptions(const ArgList &,
++void NetBSD::addClangTargetOptions(const ArgList &DriverArgs,
+ ArgStringList &CC1Args,
+ Action::OffloadKind) const {
+ const SanitizerArgs &SanArgs = getSanitizerArgs();
++ bool UseInitArrayDefault =
++ getTriple().getArch() == llvm::Triple::aarch64 ||
++ getTriple().getArch() == llvm::Triple::aarch64_be ||
++ getTriple().getArch() == llvm::Triple::riscv32 ||
++ getTriple().getArch() == llvm::Triple::riscv64;
++
++ if (DriverArgs.hasFlag(options::OPT_fuse_init_array,
++ options::OPT_fno_use_init_array, UseInitArrayDefault))
++ CC1Args.push_back("-fuse-init-array");
++
+ if (SanArgs.hasAnySanitizer())
+ CC1Args.push_back("-D_REENTRANT");
+ }
Home |
Main Index |
Thread Index |
Old Index