RFR: 8315794: RISC-V: build fails with GCC 12.3

Antonios Printezis tonyp at openjdk.org
Sat Sep 16 13:51:37 UTC 2023


On Wed, 6 Sep 2023 14:29:56 GMT, Antonios Printezis <tonyp at 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


More information about the build-dev mailing list