]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/s390/s390.c
diagnostics: Add %{...%} pretty-format support for URLs and use it in -Wpsabi diagnostics
[thirdparty/gcc.git] / gcc / config / s390 / s390.c
index 74b490ad215267655a68a09552c4fda9f6498e65..40281e87254e2fbfc1e45e68de4b9e4d2177f10f 100644 (file)
@@ -11960,17 +11960,19 @@ s390_function_arg_vector (machine_mode mode, const_tree type)
       unsigned uid = TYPE_UID (TYPE_MAIN_VARIANT (orig_type));
       if (uid != last_reported_type_uid)
        {
+         char *url = get_changes_url ("gcc-10/changes.html#empty_base");
          last_reported_type_uid = uid;
          if (empty_base_seen & 1)
            inform (input_location,
                    "parameter passing for argument of type %qT when C++17 "
-                   "is enabled changed to match C++14 in GCC 10.1",
-                   orig_type);
+                   "is enabled changed to match C++14 %{in GCC 10.1%}",
+                   orig_type, url);
          else
            inform (input_location,
                    "parameter passing for argument of type %qT with "
-                   "%<[[no_unique_address]]%> members changed in GCC 10.1",
-                   orig_type);
+                   "%<[[no_unique_address]]%> members changed "
+                   "%{in GCC 10.1%}", orig_type, url);
+         free (url);
        }
     }
   return true;
@@ -12036,17 +12038,19 @@ s390_function_arg_float (machine_mode mode, const_tree type)
       unsigned uid = TYPE_UID (TYPE_MAIN_VARIANT (orig_type));
       if (uid != last_reported_type_uid)
        {
+         char *url = get_changes_url ("gcc-10/changes.html#empty_base");
          last_reported_type_uid = uid;
          if (empty_base_seen & 1)
            inform (input_location,
                    "parameter passing for argument of type %qT when C++17 "
-                   "is enabled changed to match C++14 in GCC 10.1",
-                   orig_type);
+                   "is enabled changed to match C++14 %{in GCC 10.1%}",
+                   orig_type, url);
          else
            inform (input_location,
                    "parameter passing for argument of type %qT with "
-                   "%<[[no_unique_address]]%> members changed in GCC 10.1",
-                   orig_type);
+                   "%<[[no_unique_address]]%> members changed "
+                   "%{in GCC 10.1%}", orig_type, url);
+         free (url);
        }
     }