aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-03-12 11:07:25 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-03-12 11:07:25 +0100
commit63c79a7509c1ce5e8439d23a8f2de096ce0dec7c (patch)
tree3c665902a811e07028c6c7dfba6e0b060b650e16 /gcc
parent1c178a5af523f2baf7c0501f86190ea3e2a45cbf (diff)
downloadgcc-63c79a7509c1ce5e8439d23a8f2de096ce0dec7c.zip
gcc-63c79a7509c1ce5e8439d23a8f2de096ce0dec7c.tar.gz
gcc-63c79a7509c1ce5e8439d23a8f2de096ce0dec7c.tar.bz2
re PR target/52726 (Composed error message will not get translated)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/s390/s390.md5
-rw-r--r--gcc/config/tilepro/tilepro.c3
3 files changed, 11 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 87aa2aa..8eedde1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md
index a307e33..f1404ad5 100644
--- a/gcc/config/s390/s390.md
+++ b/gcc/config/s390/s390.md
@@ -11474,9 +11474,8 @@
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;
}
})
diff --git a/gcc/config/tilepro/tilepro.c b/gcc/config/tilepro/tilepro.c
index e1ae7d8..0cbea45 100644
--- a/gcc/config/tilepro/tilepro.c
+++ b/gcc/config/tilepro/tilepro.c
@@ -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;
}