]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PR target/124147] Fix build failure with clang on RISC-V
authorJeff Law <jeffrey.law@oss.qualcomm.com>
Sat, 21 Feb 2026 16:32:07 +0000 (09:32 -0700)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Sat, 21 Feb 2026 16:32:07 +0000 (09:32 -0700)
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.

gcc/config/riscv/riscv.cc

index 3baf0a936b5857c621eb471449971cc2e7f9ce4b..ff46ffdb45663b61a650b50aa3b4f797119aa49e 100644 (file)
@@ -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;
 }