]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/79846
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Mar 2019 10:53:27 +0000 (10:53 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Mar 2019 10:53:27 +0000 (10:53 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269489 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/s390/s390.c

index b61653538e4f389d26f84cf9589713126fc68388..f56b266227dbd6cad0e145959826b904d3935219 100644 (file)
@@ -1,5 +1,10 @@
 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
        * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
        from diagnostics.  Formatting fixes.
index aff271806b77b6ffd165078704c35d7f3b5e3e9b..fce463f729202057c0805b15d004bfbaac6b9f1f 100644 (file)
@@ -734,10 +734,9 @@ s390_const_operand_ok (tree arg, int argnum, int op_flags, tree decl)
       if (!tree_fits_uhwi_p (arg)
          || tree_to_uhwi (arg) > (HOST_WIDE_INT_1U << bitwidth) - 1)
        {
-         error("constant argument %d for builtin %qF is out of range (0.."
-               HOST_WIDE_INT_PRINT_UNSIGNED ")",
-               argnum, decl,
-               (HOST_WIDE_INT_1U << bitwidth) - 1);
+         error ("constant argument %d for builtin %qF is out of range "
+                "(0..%wu)", argnum, decl,
+                (HOST_WIDE_INT_1U << bitwidth) - 1);
          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)) - 1))
        {
-         error("constant argument %d for builtin %qF is out of range ("
-               HOST_WIDE_INT_PRINT_DEC ".."
-               HOST_WIDE_INT_PRINT_DEC ")",
-               argnum, decl,
-               -(HOST_WIDE_INT_1 << (bitwidth - 1)),
-               (HOST_WIDE_INT_1 << (bitwidth - 1)) - 1);
+         error ("constant argument %d for builtin %qF is out of range "
+                "(%wd..%wd)", argnum, decl,
+                -(HOST_WIDE_INT_1 << (bitwidth - 1)),
+                (HOST_WIDE_INT_1 << (bitwidth - 1)) - 1);
          return false;
        }
     }