mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Work around build problems on some systems running HEAD.
PR: ports/178910 Obtained from: pkgsrc
This commit is contained in:
parent
a3f1ca63d6
commit
04519a73d5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319327
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= llvm
|
||||
PORTVERSION= 3.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= devel lang
|
||||
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
||||
|
26
devel/llvm/files/patch-lib_Target_X86_X86JITInfo.cpp
Normal file
26
devel/llvm/files/patch-lib_Target_X86_X86JITInfo.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
$NetBSD: patch-lib_Target_X86_X86JITInfo.cpp,v 1.1 2013/04/02 12:00:05 joerg Exp $
|
||||
$FreeBSD$
|
||||
|
||||
It is not yet decided whether extern "C" applies to static functions, so
|
||||
be explicit for now.
|
||||
|
||||
--- lib/Target/X86/X86JITInfo.cpp.orig 2013-04-01 12:16:22.000000000 +0000
|
||||
+++ lib/Target/X86/X86JITInfo.cpp
|
||||
@@ -342,6 +342,17 @@ extern "C" {
|
||||
/// must locate the start of the stub or call site and pass it into the JIT
|
||||
/// compiler function.
|
||||
extern "C" {
|
||||
+
|
||||
+#if !(defined (X86_64_JIT) && defined(_MSC_VER))
|
||||
+ // the following function is called only from this translation unit,
|
||||
+ // unless we are under 64bit Windows with MSC, where there is
|
||||
+ // no support for inline assembly
|
||||
+static
|
||||
+#endif
|
||||
+void LLVM_ATTRIBUTE_USED
|
||||
+X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr)
|
||||
+__asm__("X86CompilationCallback2");
|
||||
+
|
||||
#if !(defined (X86_64_JIT) && defined(_MSC_VER))
|
||||
// the following function is called only from this translation unit,
|
||||
// unless we are under 64bit Windows with MSC, where there is
|
Loading…
Reference in New Issue
Block a user