re PR target/79846 (s390: untranslatable diagnostic in s390.c)

PR target/79846
	* config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
	HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
	HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.

From-SVN: r269489
This commit is contained in:
Jakub Jelinek 2019-03-08 11:53:27 +01:00 committed by Jakub Jelinek
parent 4ee494c053
commit ec07e94bbf
2 changed files with 12 additions and 10 deletions

View File

@ -1,5 +1,10 @@
2019-03-08 Jakub Jelinek <jakub@redhat.com> 2019-03-08 Jakub Jelinek <jakub@redhat.com>
PR target/79846
* config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
PR ipa/80000 PR ipa/80000
* ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
from diagnostics. Formatting fixes. from diagnostics. Formatting fixes.

View File

@ -734,10 +734,9 @@ s390_const_operand_ok (tree arg, int argnum, int op_flags, tree decl)
if (!tree_fits_uhwi_p (arg) if (!tree_fits_uhwi_p (arg)
|| tree_to_uhwi (arg) > (HOST_WIDE_INT_1U << bitwidth) - 1) || tree_to_uhwi (arg) > (HOST_WIDE_INT_1U << bitwidth) - 1)
{ {
error("constant argument %d for builtin %qF is out of range (0.." error ("constant argument %d for builtin %qF is out of range "
HOST_WIDE_INT_PRINT_UNSIGNED ")", "(0..%wu)", argnum, decl,
argnum, decl, (HOST_WIDE_INT_1U << bitwidth) - 1);
(HOST_WIDE_INT_1U << bitwidth) - 1);
return false; return false;
} }
} }
@ -751,12 +750,10 @@ s390_const_operand_ok (tree arg, int argnum, int op_flags, tree decl)
|| tree_to_shwi (arg) < -(HOST_WIDE_INT_1 << (bitwidth - 1)) || tree_to_shwi (arg) < -(HOST_WIDE_INT_1 << (bitwidth - 1))
|| tree_to_shwi (arg) > ((HOST_WIDE_INT_1 << (bitwidth - 1)) - 1)) || tree_to_shwi (arg) > ((HOST_WIDE_INT_1 << (bitwidth - 1)) - 1))
{ {
error("constant argument %d for builtin %qF is out of range (" error ("constant argument %d for builtin %qF is out of range "
HOST_WIDE_INT_PRINT_DEC ".." "(%wd..%wd)", argnum, decl,
HOST_WIDE_INT_PRINT_DEC ")", -(HOST_WIDE_INT_1 << (bitwidth - 1)),
argnum, decl, (HOST_WIDE_INT_1 << (bitwidth - 1)) - 1);
-(HOST_WIDE_INT_1 << (bitwidth - 1)),
(HOST_WIDE_INT_1 << (bitwidth - 1)) - 1);
return false; return false;
} }
} }