summaryrefslogtreecommitdiff
path: root/lang/openjdk8/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2015-03-24 14:24:38 +0000
committerjoerg <joerg>2015-03-24 14:24:38 +0000
commitd3c4821c4b23e084cf6d37e874c3eb523ce0c975 (patch)
tree993ab71e117225ff3d9b343322abe4d5aead74be /lang/openjdk8/patches
parentd901519968e860461ba32fd2b27f685aef8953d4 (diff)
downloadpkgsrc-d3c4821c4b23e084cf6d37e874c3eb523ce0c975.tar.gz
Don't mess with sync builtins, it breaks the build with Clang.
Diffstat (limited to 'lang/openjdk8/patches')
-rw-r--r--lang/openjdk8/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/lang/openjdk8/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp b/lang/openjdk8/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp
new file mode 100644
index 00000000000..6601c995b2b
--- /dev/null
+++ b/lang/openjdk8/patches/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp
@@ -0,0 +1,28 @@
+$NetBSD: patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp,v 1.1 2015/03/24 14:24:38 joerg Exp $
+
+clang objects to redefining builtins.
+
+--- hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp.orig 2015-03-22 20:58:57.000000000 +0000
++++ hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
+@@ -446,21 +446,6 @@ extern "C" {
+ }
+ };
+
+-/////////////////////////////////////////////////////////////////////////////
+-// Implementations of atomic operations not supported by processors.
+-// -- http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Atomic-Builtins.html
+-
+-#ifndef _LP64
+-extern "C" {
+- long long unsigned int __sync_val_compare_and_swap_8(
+- volatile void *ptr,
+- long long unsigned int oldval,
+- long long unsigned int newval) {
+- ShouldNotCallThis();
+- }
+-};
+-#endif // !_LP64
+-
+ #ifndef PRODUCT
+ void os::verify_stack_alignment() {
+ }