RFR: 8315794: RISC-V: build fails with GCC 12.3
Kim Barrett
kbarrett at openjdk.org
Thu Sep 7 18:38:39 UTC 2023
On Thu, 7 Sep 2023 11:08:45 GMT, Andrew Haley <aph 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?
>
> Just for the record, this is very likely https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104475 .
I'd like to not disable the warnings without a better understanding of the problem. I agree with @theRealAph that gcc
bug 104475 is likely where the warning is coming from. But it may be that giving gcc better control flow information
via appropriate `[[noreturn]]` or (something like) `std::unreachable()` might be better.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15593#issuecomment-1710607492
More information about the build-dev
mailing list