Integrated: 8286562: GCC 12 reports some compiler warnings
David Holmes
david.holmes at oracle.com
Sat May 28 05:44:41 UTC 2022
The new assertion in src/hotspot/share/utilities/globalDefinitions.hpp
inline const char* type2name(BasicType t) {
assert((uint)t < T_CONFLICT + 1, "invalid type");
return type2name_tab[t];
}
is failing with test
compiler/jvmci/errors/TestInvalidDebugInfo.java
I have filed:
https://bugs.openjdk.java.net/browse/JDK-8287491
The test will probably need ProblemListing as it is causing major noise
in our CI.
David
On 28/05/2022 12:12 pm, Yasumasa Suenaga wrote:
> On Wed, 11 May 2022 05:58:31 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
>
>> I saw some compiler warnings when I tried to build OpenJDK with GCC 12.0.1 on Fedora 36.
>> As you can see, the warnings spreads several areas. Let me know if I should separate them by area.
>>
>> * -Wstringop-overflow
>> * src/hotspot/share/oops/array.hpp
>> * src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdBits.inline.hpp
>>
>> In member function 'void Array<T>::at_put(int, const T&) [with T = unsigned char]',
>> inlined from 'void ConstantPool::tag_at_put(int, jbyte)' at /home/ysuenaga/github-forked/jdk/src/hotspot/share/oops/constantPool.hpp:126:64,
>> inlined from 'void ConstantPool::method_at_put(int, int, int)' at /home/ysuenaga/github-forked/jdk/src/hotspot/share/oops/constantPool.hpp:380:15,
>> inlined from 'ConstantPool* BytecodeConstantPool::create_constant_pool(JavaThread*) const' at /home/ysuenaga/github-forked/jdk/src/hotspot/share/classfile/bytecodeAssembler.cpp:85:26:
>
> This pull request has now been integrated.
>
> Changeset: 410a25d5
> Author: Yasumasa Suenaga <ysuenaga at openjdk.org>
> URL: https://git.openjdk.java.net/jdk/commit/410a25d59a11b6a627bbb0a2c405c2c2be19f464
> Stats: 41 lines in 5 files changed: 26 ins; 1 del; 14 mod
>
> 8286562: GCC 12 reports some compiler warnings
>
> Reviewed-by: ihse, kbarrett, prr
>
> -------------
>
> PR: https://git.openjdk.java.net/jdk/pull/8646
More information about the core-libs-dev
mailing list