-
Bug
-
Resolution: Fixed
-
P4
-
11, 15, 16
-
b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8252363 | 15.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
JDK-8252672 | 15.0.1 | Aleksey Shipilev | P4 | Resolved | Fixed | b08 |
Building hotspot with LTO enabled:
$ sh ./configure ... --with-extra-cxxflags="-flto -ffat-lto-objects -fcommon" --with-extra-cflags="-flto -ffat-lto-objects -fcommon"
Yields this warning:
/home/shade/trunks/jdk-jdk/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp:1576:17: warning: 'jio_printf' violates the C++ One Definition Rule [-Wodr]
1576 | extern "C" void jio_printf(const char *fmt, ...);
| ^
/home/shade/trunks/jdk-jdk/src/hotspot/share/prims/jvm.cpp:2961:15: note: return value type mismatch
2961 | JNIEXPORT int jio_printf(const char *fmt, ...) {
| ^
It seems that only jvmciCompilerToVM.cpp declares the "void" return type.
$ sh ./configure ... --with-extra-cxxflags="-flto -ffat-lto-objects -fcommon" --with-extra-cflags="-flto -ffat-lto-objects -fcommon"
Yields this warning:
/home/shade/trunks/jdk-jdk/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp:1576:17: warning: 'jio_printf' violates the C++ One Definition Rule [-Wodr]
1576 | extern "C" void jio_printf(const char *fmt, ...);
| ^
/home/shade/trunks/jdk-jdk/src/hotspot/share/prims/jvm.cpp:2961:15: note: return value type mismatch
2961 | JNIEXPORT int jio_printf(const char *fmt, ...) {
| ^
It seems that only jvmciCompilerToVM.cpp declares the "void" return type.
- backported by
-
JDK-8252363 jvmciCompilerToVM.cpp declares jio_printf with "void" return type, should be "int"
-
- Resolved
-
-
JDK-8252672 jvmciCompilerToVM.cpp declares jio_printf with "void" return type, should be "int"
-
- Resolved
-
- relates to
-
JDK-8223332 Update JVMCI
-
- Resolved
-