RFR: 8298055: AArch64: fastdebug build fails after JDK-8247645

Andrew Haley aph at openjdk.org
Sat Dec 3 10:23:02 UTC 2022


On Sat, 3 Dec 2022 08:46:48 GMT, Jie Fu <jiefu at openjdk.org> wrote:

>> Please review this trivial change fixing a fastdebug build failure due to warnings being treated as errors after JDK-8247645.
>> 
>> Testing: fastdebug build fine with this change on linux-aarch64 platform.
>
> src/hotspot/cpu/aarch64/assembler_aarch64.hpp line 2438:
> 
>> 2436:     default:
>> 2437:       ShouldNotReachHere();
>> 2438:       Rm = 0;  // unreachable
> 
> Instead of adding this line, how about initiating `Rm` at declaration like `int Rm = 0;`?

This is how it's done elsewhere in the port. Sucks, but we're stuck with it unil we find a better solution for warnings.

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

PR: https://git.openjdk.org/jdk/pull/11496


More information about the hotspot-compiler-dev mailing list