openbsd-ports/devel/llvm/patches/patch-lib_Target_AArch64_AArch64Subtarget_h
ajacoutot e563677b2c Update to llvm-5.0.0rc4.
Tested on amd64, i386, sparc64
from Brad (maintainer)
2017-09-01 06:40:28 +00:00

18 lines
943 B
Plaintext

$OpenBSD: patch-lib_Target_AArch64_AArch64Subtarget_h,v 1.2 2017/09/01 06:40:28 ajacoutot Exp $
Disable the Load Stack Guard for OpenBSD on AArch64. We don't use it
on any other platform and it causes a segfault in combination with our
IR Stack Guard.
Index: lib/Target/AArch64/AArch64Subtarget.h
--- lib/Target/AArch64/AArch64Subtarget.h.orig
+++ lib/Target/AArch64/AArch64Subtarget.h
@@ -259,6 +259,7 @@ class AArch64Subtarget final : public AArch64GenSubtar
bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
bool isTargetIOS() const { return TargetTriple.isiOS(); }
bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
+ bool isTargetOpenBSD() const { return TargetTriple.isOSOpenBSD(); }
bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
bool isTargetAndroid() const { return TargetTriple.isAndroid(); }
bool isTargetFuchsia() const { return TargetTriple.isOSFuchsia(); }