On 9/15/23 01:49, Kito Cheng via Gcc-patches wrote:
I guess another solution is using reg_or_subregno instead of REGNO, but that should not catch more cases, and just more run-time check, so this version is LGTM.
I tested an equivalent patch (without the comment changes). This patch resolves the build errors on glibc rv64gc with --enable-checking=rtl. Tested for regressions (without --enable-checking=rtl) using rv64gc & rv32gc glibc.
This patch does not cause any regressions on those targets. Patrick