RFR: 8290496: riscv: Fix build warnings-as-errors with GCC 11
Feilong Jiang
fjiang at openjdk.org
Tue Jul 19 12:52:47 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 macro 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
Marked as reviewed by fjiang (Author).
-------------
PR: https://git.openjdk.org/jdk/pull/9550
More information about the hotspot-compiler-dev
mailing list