Hi,

the 4.3.3 gcc compiler I'm using statically checks format specifications
in the *printf family of functions. While building the *debug* version
of the mlvm, the build stops with 4 errors about a mismatch between a
format specification and the actual arguments.

I'm in
$davinci/sources/hotspot/src/cpu/x86/vm

The output of
hg diff --git methodHandles_x86.cpp
is in the enclosed attachment.


diff --git a/src/cpu/x86/vm/methodHandles_x86.cpp 
b/src/cpu/x86/vm/methodHandles_x86.cpp
--- a/src/cpu/x86/vm/methodHandles_x86.cpp
+++ b/src/cpu/x86/vm/methodHandles_x86.cpp
@@ -278,9 +278,9 @@
   intptr_t* last_sp = (intptr_t*) 
saved_bp[frame::interpreter_frame_last_sp_offset];
   intptr_t* base_sp = (intptr_t*) 
saved_bp[frame::interpreter_frame_monitor_block_top_offset];
   printf("MH %s mh="PTR_FORMAT" sp=("PTR_FORMAT"+"INTX_FORMAT") 
stack_size="INTX_FORMAT" bp="PTR_FORMAT"\n",
-         adaptername, mh, entry_sp, (saved_sp - entry_sp), (base_sp - 
last_sp), saved_bp);
+         adaptername, (intptr_t) mh, (intptr_t) entry_sp, (saved_sp - 
entry_sp), (base_sp - last_sp), (intptr_t) saved_bp);
   if (last_sp != saved_sp)
-    printf("*** last_sp="PTR_FORMAT"\n", last_sp);
+    printf("*** last_sp="PTR_FORMAT"\n", (intptr_t) last_sp);
   if (Verbose)  print_method_handle(mh);
 }
 #endif //PRODUCT
_______________________________________________
mlvm-dev mailing list
[email protected]
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to