Skip to content

Commit cbbec73

Browse files
Richard-RogalskiRealCLanger
authored andcommitted
8230708: Hotspot fails to build on linux-sparc with gcc-9
Backport-of: 5f29e88
1 parent 01db476 commit cbbec73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/cpu/sparc/nativeInst_sparc.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ inline NativeInstruction* nativeInstruction_at(address address) {
313313
// (used to manipulate inline caches, primitive & dll calls, etc.)
314314
inline NativeCall* nativeCall_at(address instr);
315315
inline NativeCall* nativeCall_overwriting_at(address instr,
316-
address destination);
316+
address destination = NULL);
317317
inline NativeCall* nativeCall_before(address return_address);
318318
class NativeCall: public NativeInstruction {
319319
public:
@@ -342,7 +342,7 @@ class NativeCall: public NativeInstruction {
342342

343343
// Creation
344344
friend inline NativeCall* nativeCall_at(address instr);
345-
friend NativeCall* nativeCall_overwriting_at(address instr, address destination = NULL) {
345+
friend NativeCall* nativeCall_overwriting_at(address instr, address destination) {
346346
// insert a "blank" call:
347347
NativeCall* call = (NativeCall*)instr;
348348
call->set_long_at(0 * BytesPerInstWord, call_instruction(destination, instr));
@@ -411,7 +411,7 @@ class NativeCallReg: public NativeInstruction {
411411
// == sethi %hi54(addr), O7 ; jumpl O7, %lo10(addr), O7 ; <delay>
412412
// That is, it is essentially the same as a NativeJump.
413413
class NativeFarCall;
414-
inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination);
414+
inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination = NULL);
415415
inline NativeFarCall* nativeFarCall_at(address instr);
416416
class NativeFarCall: public NativeInstruction {
417417
public:
@@ -450,7 +450,7 @@ class NativeFarCall: public NativeInstruction {
450450
return call;
451451
}
452452

453-
friend inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination = NULL) {
453+
friend inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination) {
454454
Unimplemented();
455455
NativeFarCall* call = (NativeFarCall*)instr;
456456
return call;

0 commit comments

Comments
 (0)