[jdk8u-dev] RFR: 8329826: GCC 12 reports some compiler error when building jdk8

Kun Wang kwang at openjdk.org
Wed May 8 13:20:55 UTC 2024


On Tue, 16 Apr 2024 14:32:39 GMT, mirabilos <duke at openjdk.org> wrote:

>> Env:
>> ldd (GNU libc) 2.38
>> gcc (GCC) 12.3.1 
>> 
>> Test the PR patch;
>> Build release/fastdebug/slowdebug version pass
>> 
>> Reported issue : https://bugs.openjdk.org/browse/JDK-8329826
>
> hotspot/make/linux/makefiles/gcc.make line 215:
> 
>> 213: endif
>> 214: 
>> 215: WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -Wno-stringop-overflow
> 
> disabling the warning instead of fixing the code is not the proper way to deal with this

Thank you for your code review. 
The same solution is used in later JDK versions. https://bugs.openjdk.org/browse/JDK-8320212 ; 
So JDK8 can also use this solution.

-------------

PR Review Comment: https://git.openjdk.org/jdk8u-dev/pull/479#discussion_r1594016834


More information about the jdk8u-dev mailing list