|
| 1 | +Resolves build error with GCC 10. |
| 2 | + |
| 3 | +--- a/src/hotspot/cpu/sparc/nativeInst_sparc.hpp |
| 4 | ++++ b/src/hotspot/cpu/sparc/nativeInst_sparc.hpp |
| 5 | +@@ -315,7 +315,7 @@ |
| 6 | + |
| 7 | + inline NativeCall* nativeCall_at(address instr); |
| 8 | + inline NativeCall* nativeCall_overwriting_at(address instr, |
| 9 | +- address destination); |
| 10 | ++ address destination = NULL); |
| 11 | + inline NativeCall* nativeCall_before(address return_address); |
| 12 | + class NativeCall: public NativeInstruction { |
| 13 | + public: |
| 14 | +@@ -344,7 +344,7 @@ |
| 15 | + |
| 16 | + // Creation |
| 17 | + friend inline NativeCall* nativeCall_at(address instr); |
| 18 | +- friend NativeCall* nativeCall_overwriting_at(address instr, address destination = NULL) { |
| 19 | ++ friend NativeCall* nativeCall_overwriting_at(address instr, address destination) { |
| 20 | + // insert a "blank" call: |
| 21 | + NativeCall* call = (NativeCall*)instr; |
| 22 | + call->set_long_at(0 * BytesPerInstWord, call_instruction(destination, instr)); |
| 23 | +@@ -413,7 +413,7 @@ |
| 24 | + // == sethi %hi54(addr), O7 ; jumpl O7, %lo10(addr), O7 ; <delay> |
| 25 | + // That is, it is essentially the same as a NativeJump. |
| 26 | + class NativeFarCall; |
| 27 | +-inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination); |
| 28 | ++inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination = NULL); |
| 29 | + inline NativeFarCall* nativeFarCall_at(address instr); |
| 30 | + class NativeFarCall: public NativeInstruction { |
| 31 | + public: |
| 32 | +@@ -452,7 +452,7 @@ |
| 33 | + return call; |
| 34 | + } |
| 35 | + |
| 36 | +- friend inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination = NULL) { |
| 37 | ++ friend inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination) { |
| 38 | + Unimplemented(); |
| 39 | + NativeFarCall* call = (NativeFarCall*)instr; |
| 40 | + return call; |
0 commit comments