void-packages/srcpkgs/openjdk9-bootstrap/files/musl_003_arm.patch
q66 e5f37001ed New package: openjdk9-bootstrap-9.0.4p12
This will be used to bootstrap openjdk10-bootstrap, which will
be used to bootstrap openjdk11. It is itself bootstrapped with
openjdk8.
2019-12-01 12:33:37 +01:00

30 lines
719 B
Diff

--- old/hotspot/src/os_cpu/linux_arm/vm/os_linux_arm.cpp
+++ new/hotspot/src/os_cpu/linux_arm/vm/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"
@@ -104,6 +103,18 @@
#define ARM_REGS_IN_CONTEXT 31
#else
+
+// 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