[jdk17u-dev] RFR: 8276799: Implementation of JEP 422: Linux/RISC-V Port [v5]
Aleksey Shipilev
shade at openjdk.org
Wed Jun 28 08:43:20 UTC 2023
On Wed, 28 Jun 2023 05:59:50 GMT, Fei Yang <fyang at openjdk.org> wrote:
>> src/hotspot/share/c1/c1_LIR.hpp line 1695:
>>
>>> 1693: };
>>> 1694:
>>> 1695: #ifdef RISCV
>>
>> Would you be able not to move this code? Leave it in place, so that diff is cleaner?
>
> Hi, I am afraid that this has to come after class definition of `LIR_Op2` as class `LIR_OpBranch` extends public `LIR_Op2` for RISC-V. Otherwise, I got compile errors like:
>
> In file included from /home/fyang/jdk17u-dev-fork/src/hotspot/share/c1/c1_Instruction.hpp:29,
> from /home/fyang/jdk17u-dev-fork/src/hotspot/share/c1/c1_LIRGenerator.hpp:29,
> from /home/fyang/jdk17u-dev-fork/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp:27:
> /home/fyang/jdk17u-dev-fork/src/hotspot/share/c1/c1_LIR.hpp:1427:28: error: invalid use of incomplete type 'class LIR_Op2'
> 1427 | class LIR_OpBranch: public LIR_Op2 {
> | ^~~~~~~
> /home/fyang/jdk17u-dev-fork/src/hotspot/share/c1/c1_LIR.hpp:868:10: note: forward declaration of 'class LIR_Op2'
> 868 | class LIR_Op2;
> | ^~~~~~~
Aw. Pity. Nevermind then. (Shakes fists at C/C++)
-------------
PR Review Comment: https://git.openjdk.org/jdk17u-dev/pull/1427#discussion_r1244889166
More information about the jdk-updates-dev
mailing list