]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Fix some error messages for invalid conversions
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 17 Jun 2022 14:07:37 +0000 (14:07 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Fri, 17 Jun 2022 14:16:20 +0000 (14:16 +0000)
"* something" isn't a type.  "something *" is.

2022-06-17  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.cc (rs6000_invalid_conversion): Correct some
types.

gcc/config/rs6000/rs6000.cc

index 59481d9ac7082fe664e0e8b7773288756747b2df..3d1f895ebd529c1b6e7bf9674d09182a9988435e 100644 (file)
@@ -28305,13 +28305,13 @@ rs6000_invalid_conversion (const_tree fromtype, const_tree totype)
          && tomode != VOIDmode)
        {
          if (frommode == XOmode)
-           return N_("invalid conversion from type %<* __vector_quad%>");
+           return N_("invalid conversion from type %<__vector_quad *%>");
          if (tomode == XOmode)
-           return N_("invalid conversion to type %<* __vector_quad%>");
+           return N_("invalid conversion to type %<__vector_quad *%>");
          if (frommode == OOmode)
-           return N_("invalid conversion from type %<* __vector_pair%>");
+           return N_("invalid conversion from type %<__vector_pair *%>");
          if (tomode == OOmode)
-           return N_("invalid conversion to type %<* __vector_pair%>");
+           return N_("invalid conversion to type %<__vector_pair *%>");
        }
     }