re PR target/52726 (Composed error message will not get translated)
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Mar 2019 10:07:25 +0000 (11:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Mar 2019 10:07:25 +0000 (11:07 +0100)
PR target/52726
* config/s390/s390.md (tabort): Use %wd instead of
HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
letters and periods.
* config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
's with %< and %>.

From-SVN: r269607

gcc/ChangeLog
gcc/config/s390/s390.md
gcc/config/tilepro/tilepro.c

index 87aa2aa2f5c255227f46686c181e0a6b50b3072d..8eedde1dc0910d36f543ad4ec188a285242da8ac 100644 (file)
@@ -1,5 +1,13 @@
 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
 
+       PR target/52726
+       * config/s390/s390.md (tabort): Use %wd instead of
+       HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
+       letters and periods.
+       * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
+       output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
+       's with %< and %>.
+
        PR middle-end/89663
        * builtins.c (expand_builtin_int_roundingfn,
        expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
index a307e33e9d715e0eae66c9868a2cdc327cbb2ef1..f1404ad5f017d66836940015cd918f82a7be28d1 100644 (file)
   if (CONST_INT_P (operands[0])
       && INTVAL (operands[0]) >= 0 && INTVAL (operands[0]) <= 255)
     {
-      error ("invalid transaction abort code: " HOST_WIDE_INT_PRINT_DEC
-            ".  Values in range 0 through 255 are reserved.",
-            INTVAL (operands[0]));
+      error ("invalid transaction abort code: %wd;  values in range 0 "
+            "through 255 are reserved", INTVAL (operands[0]));
       FAIL;
     }
 })
index e1ae7d83782643e0b79dcf348c20f384c849af2a..0cbea458d08cae7587312f93a13eb17256f47099 100644 (file)
@@ -4771,8 +4771,7 @@ tilepro_print_operand (FILE *file, rtx x, int code)
        i = exact_log2 (n);
        if (i < 0)
          {
-           output_operand_lossage ("invalid %%t operand '"
-                                   HOST_WIDE_INT_PRINT_DEC "'", n);
+           output_operand_lossage ("invalid %%t operand %<%wd%>", n);
            return;
          }