Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082747 | emb-9 | Volker Simonis | P4 | Resolved | Fixed | team |
With newer GCCs we currently get the following error:
/usr/work/d046063/OpenJDK/jdk9-hs-comp/hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp: In static member function ‘static void VM_Version::config_dscr()’:
/usr/work/d046063/OpenJDK/jdk9-hs-comp/hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp:632:98: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t* {aka unsigned int*}’ [-Werror=format=]
tty->print_cr("Decoding dscr configuration stub at " INTPTR_FORMAT " before execution:", code);
The fix is trivial - just use the "p2i()" helper function to cast the pointers to the appropriate type:
tty->print_cr("Decoding dscr configuration stub at " INTPTR_FORMAT " before execution:", p2i(code));
/usr/work/d046063/OpenJDK/jdk9-hs-comp/hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp: In static member function ‘static void VM_Version::config_dscr()’:
/usr/work/d046063/OpenJDK/jdk9-hs-comp/hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp:632:98: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t* {aka unsigned int*}’ [-Werror=format=]
tty->print_cr("Decoding dscr configuration stub at " INTPTR_FORMAT " before execution:", code);
The fix is trivial - just use the "p2i()" helper function to cast the pointers to the appropriate type:
tty->print_cr("Decoding dscr configuration stub at " INTPTR_FORMAT " before execution:", p2i(code));
- backported by
-
JDK-8082747 Fix format warning/error in vm_version_ppc.cpp
-
- Resolved
-
- relates to
-
JDK-8076532 Fix format warning/error in methodHandles_ppc.cpp
-
- Resolved
-