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

Kun Wang kwang at openjdk.org
Thu May 9 10:06:59 UTC 2024


On Wed, 8 May 2024 13:50:18 GMT, Kun Wang <kwang at openjdk.org> wrote:

>> No, rather the other way round: please fix that in later JDK versions as well.
>> 
>> I’m only the Debian packager for JDK 8, so I have no relationship to the other versions. This doesn’t make my critique invalid.
>
> thanks.  Ok, I'll try to fix it forward through the code;
> Since I'm not sure how many errors there are yet, this may take a while. I'll try;

Hi mirabilos,
I looked up some information; reference: https://gcc.gnu.org/bugzilla/show_bug.cgi? ID=106297. I also found that the gcc12 in my test environment was not a pure version but a version after secondary development, which affected the misjudgment of the jdk8 compilation error.
I built and tested using https://ftp.gnu.org/gnu/gcc/. The -Werror=stringop-overflow= error does not exist, and hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp does not need to be modified.
The verification is as follows:
![image](https://github.com/openjdk/jdk8u-dev/assets/9154227/87ed51a0-ef3a-4e24-8b7f-c900446b247a)

Therefore, I think the changes in gcc.make and concurrentMark.cpp should be removed.
thanks;

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

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


More information about the jdk8u-dev mailing list