On Thu, 7 Sep 2023 11:08:45 GMT, Andrew Haley <a...@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

Reply via email to