Integrated: 8290496: riscv: Fix build warnings-as-errors with GCC 11

Fei Yang fyang at openjdk.org
Wed Jul 20 08:29:22 UTC 2022


On Tue, 19 Jul 2022 06:35:28 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Like AArch64 port, RISC-V port defines DEOPTIMIZE_WHEN_PATCHING and does not make use of C1 runtime patching.
> Then there is no need to implement class NativeMovRegMem in the port-specific code. But that will make GCC 11 unhappy.
> 
> One way would be guarding the C1 shared code like class PatchingStub which uses class NativeMovRegMem under condition #ifndef DEOPTIMIZE_WHEN_PATCHING. But turns out class PatchingStub are still partially used (mainly the PatchID enum) even under DEOPTIMIZE_WHEN_PATCHING.
> 
> So PR takes another way fixing this warning by implementing the NativeMovRegMem class for RISC-V like Like AArch64 port.
> 
> Testing: release & fastdebug build OK without --disable-warnings-as-errors

This pull request has now been integrated.

Changeset: 5425573b
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5425573bb4de1a2434201bc7ec3700b527ce346b
Stats:     43 lines in 2 files changed: 6 ins; 14 del; 23 mod

8290496: riscv: Fix build warnings-as-errors with GCC 11

Reviewed-by: yadongwang, fjiang, shade

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

PR: https://git.openjdk.org/jdk/pull/9550


More information about the hotspot-compiler-dev mailing list