On Wed, 6 Sep 2023 14:29:56 GMT, Antonios Printezis <to...@openjdk.org> wrote:

> The build failure happens when building on RISC-V with GCC 12.3. Is there a 
> better way to address this than disabling the stringop-overflow warnings for 
> the two files in question?

Looks as if adding the pragma in the two .cpp files also seems to work:


     // Record flushed pages as claimed
+    PRAGMA_STRINGOP_OVERFLOW_IGNORED
     Atomic::add(&_claimed, flushed);


Not sure why it doesn't work when I put the pragma in 
`PlatformAdd::add_then_fetch` in `atomic_linux_riscv.hpp`.

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

PR Comment: https://git.openjdk.org/jdk/pull/15593#issuecomment-1722234620

Reply via email to