https://gcc.gnu.org/g:136ef3b4dd3d9ccf9c974e0dde01f7383027499b
commit r16-7608-g136ef3b4dd3d9ccf9c974e0dde01f7383027499b Author: Jeff Law <[email protected]> Date: Sat Feb 21 09:32:07 2026 -0700 [PR target/124147] Fix build failure with clang on RISC-V Trivial fix for a build failure using clang. The argument here is a pointer, not a location_t. Pushed to the trunk as obvious. PR target/124147 gcc/ * config/riscv/riscv.cc (riscv_same_function_versions): Use nullptr_t rather than UNKNOWN_LOCATION for pointer argument. Diff: --- gcc/config/riscv/riscv.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 3baf0a936b58..ff46ffdb4566 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -15008,8 +15008,8 @@ riscv_same_function_versions (string_slice v1, const_tree, string_slice v2, /* Invalid features should have already been rejected by this point so providing no location should be okay. */ - parse_features_for_version (v1, UNKNOWN_LOCATION, mask1, prio1); - parse_features_for_version (v2, UNKNOWN_LOCATION, mask2, prio2); + parse_features_for_version (v1, nullptr, mask1, prio1); + parse_features_for_version (v2, nullptr, mask2, prio2); return compare_fmv_features (mask1, mask2, prio1, prio2) == 0; }
