Commit e623cedf by Jiong Wang Committed by Jiong Wang

[Patch] Improve warning message

  gcc/
    * expmed.c (store_bit_field_using_insv): Improve warning message.
    Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.

From-SVN: r219718
parent 4ae9783e
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
* expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
there is partial overflow.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment