mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
openjdk17: fix build on armv7l-musl
This commit is contained in:
parent
2296452200
commit
7973d7a445
1 changed files with 17 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
Patch taken from Alpine: https://git.alpinelinux.org/aports/tree/community/openjdk17/FixNullPtrCast.patch
|
Patch taken from Alpine: https://git.alpinelinux.org/aports/tree/community/openjdk17/FixNullPtrCast.patch
|
||||||
|
|
||||||
|
same fix for armv7l-musl added
|
||||||
|
|
||||||
Subject: Fix cast errors with latest GCC
|
Subject: Fix cast errors with latest GCC
|
||||||
Upstream: No
|
Upstream: No
|
||||||
Author: Simon Frankenberger <simon-alpine@fraho.eu>
|
Author: Simon Frankenberger <simon-alpine@fraho.eu>
|
||||||
|
@ -17,3 +19,18 @@ This patch fixes one remaining casting error reported by GCC 12 for aarch64
|
||||||
if (pass_gpr(value) < 0) {
|
if (pass_gpr(value) < 0) {
|
||||||
pass_stack<>(value);
|
pass_stack<>(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--- old/src/hotspot/cpu/arm/interpreterRT_arm.cpp
|
||||||
|
+++ new/src/hotspot/cpu/arm/interpreterRT_arm.cpp
|
||||||
|
@@ -306,8 +306,8 @@
|
||||||
|
virtual void pass_object() {
|
||||||
|
intptr_t from_addr = (intptr_t)(_from + Interpreter::local_offset_in_bytes(0));
|
||||||
|
if(_last_gp < GPR_PARAMS) {
|
||||||
|
- _toGP[_last_gp++] = (*(intptr_t*)from_addr == 0) ? NULL : from_addr;
|
||||||
|
+ _toGP[_last_gp++] = (*(intptr_t*)from_addr == 0) ? (intptr_t) 0 : (intptr_t)from_addr;
|
||||||
|
} else {
|
||||||
|
- *_to++ = (*(intptr_t*)from_addr == 0) ? NULL : from_addr;
|
||||||
|
+ *_to++ = (*(intptr_t*)from_addr == 0) ? (intptr_t) 0 : (intptr_t)from_addr;
|
||||||
|
}
|
||||||
|
_from -= Interpreter::stackElementSize;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue