[Patch] Improve warning message
authorJiong Wang <jiong.wang@arm.com>
Fri, 16 Jan 2015 10:20:40 +0000 (10:20 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Fri, 16 Jan 2015 10:20:40 +0000 (10:20 +0000)
  gcc/
    * expmed.c (store_bit_field_using_insv): Improve warning message.
    Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.

From-SVN: r219718

gcc/ChangeLog
gcc/expmed.c

index 65a80c56ea19ed6f4483d6040f25d9b0f77e98db..4d9fbca10fce261d25f8953ab3a2a9eee0cfc316 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-15  Jiong Wang  <jiong.wang@arm.com>
+
+       * expmed.c (store_bit_field_using_insv): Improve warning message.
+       Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
+
 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
 
        PR rtl-optimization/64011
index beedfc052b6d9af59d03f9dfd836d9bc68b41fdc..18e62a000b4b8e8558924d30276f82d0693723ba 100644 (file)
@@ -566,9 +566,9 @@ store_bit_field_using_insv (const extraction_insn *insv, rtx op0,
      etc.  */
   if (bitsize + bitnum > unit && bitnum < unit)
     {
-      warning (OPT_Wextra, "write of "HOST_WIDE_INT_PRINT_UNSIGNED"bit data "
-              "outside the bound of destination object, data truncated into "
-              HOST_WIDE_INT_PRINT_UNSIGNED"bit", bitsize, unit - bitnum);
+      warning (OPT_Wextra, "write of %wu-bit data outside the bound of "
+              "destination object, data truncated into %wu-bit",
+              bitsize, unit - bitnum);
       bitsize = unit - bitnum;
     }