aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openjdk12/arm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openjdk12/arm.patch')
-rw-r--r--testing/openjdk12/arm.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/openjdk12/arm.patch b/testing/openjdk12/arm.patch
new file mode 100644
index 0000000000..d31699a2bd
--- /dev/null
+++ b/testing/openjdk12/arm.patch
@@ -0,0 +1,28 @@
+--- old/src/hotspot/os_cpu/linux_arm/os_linux_arm.cpp
++++ new/src/hotspot/os_cpu/linux_arm/os_linux_arm.cpp
+@@ -71,7 +71,6 @@
+ # include <pwd.h>
+ # include <poll.h>
+ # include <ucontext.h>
+-# include <fpu_control.h>
+ # include <asm/ptrace.h>
+
+ #define SPELL_REG_SP "sp"
+@@ -91,6 +90,17 @@
+ return (char*) -1;
+ }
+
++// Stupid hack as the origin if below doesnt compile with gcc 8.2.0:
++//
++// os_linux_arm.cpp:114:5: error: missing binary operator before token "("
++// #if NGREG == 16
++// ^~~~~
++//
++// The NGREG is 18, so force it to that value.
++#ifdef NGREG
++# undef NGREG
++#endif
++#define NGREG 18
+
+ #if NGREG == 16
+ // These definitions are based on the observation that until