[jdk21u-dev] RFR: 8341586: RISC-V: riscv_flush_icache.cpp build fail with gcc9.2

SendaoYan syan at openjdk.org
Wed Oct 9 04:16:03 UTC 2024


On Wed, 9 Oct 2024 03:38:58 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> The `src/hotspot/cpu/riscv/icache_riscv.cpp` build fails `riscv_flush_icache.cpp:51:29: error: requested alignment 64 is larger than 16 [-Werror=attributes]` with gcc9.2.0. Alignment 16 will be enough, though the [NR_riscv_flush_icache syscall](https://github.com/torvalds/linux/blob/master/tools/arch/riscv/include/uapi/asm/unistd.h) doesn't reqiure alignment.
> 
> Gcc10 is the [minimum](https://github.com/openjdk/jdk/blame/50426b3841240c5fda0df11439e52fa1ae9e7e07/make/autoconf/toolchain.m4#L53) supported version since JDK 23, so I create PR in jdk21u-dev.
> 
> Addiontional testing:
> 
> - [ ] riscv native build with release conf and slowdebug conf
> - [ ] jtreg tier1 tests with release build

Will not be fixed.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1038#issuecomment-2401270460


More information about the jdk-updates-dev mailing list