< prev index next >

src/hotspot/cpu/sparc/nativeInst_sparc.hpp

Print this page
rev 56195 : 8230708: Linux-sparc fails to build with gcc-9

@@ -313,11 +313,11 @@
 // (used to manipulate inline caches, primitive & dll calls, etc.)
 class NativeCall;
 
 inline NativeCall* nativeCall_at(address instr);
 inline NativeCall* nativeCall_overwriting_at(address instr,
-                                             address destination);
+                                             address destination = NULL);
 inline NativeCall* nativeCall_before(address return_address);
 class NativeCall: public NativeInstruction {
  public:
   enum Sparc_specific_constants {
     instruction_size                   = 8,

@@ -342,11 +342,11 @@
   // unit test stuff
   static void  test();
 
   // Creation
   friend inline NativeCall* nativeCall_at(address instr);
-  friend NativeCall* nativeCall_overwriting_at(address instr, address destination = NULL) {
+  friend NativeCall* nativeCall_overwriting_at(address instr, address destination) {
     // insert a "blank" call:
     NativeCall* call = (NativeCall*)instr;
     call->set_long_at(0 * BytesPerInstWord, call_instruction(destination, instr));
     call->set_long_at(1 * BytesPerInstWord, nop_instruction());
     assert(call->addr_at(2 * BytesPerInstWord) - instr == instruction_size, "instruction size");

@@ -411,11 +411,11 @@
 // The format of this extended-range call is:
 //      jumpl_to addr, lreg
 //      == sethi %hi54(addr), O7 ;  jumpl O7, %lo10(addr), O7 ;  <delay>
 // That is, it is essentially the same as a NativeJump.
 class NativeFarCall;
-inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination);
+inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination = NULL);
 inline NativeFarCall* nativeFarCall_at(address instr);
 class NativeFarCall: public NativeInstruction {
  public:
   enum Sparc_specific_constants {
     // instruction_size includes the delay slot instruction.

@@ -450,11 +450,11 @@
       call->verify();
     #endif
     return call;
   }
 
-  friend inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination = NULL) {
+  friend inline NativeFarCall* nativeFarCall_overwriting_at(address instr, address destination) {
     Unimplemented();
     NativeFarCall* call = (NativeFarCall*)instr;
     return call;
   }
 
< prev index next >