From e623cedfabf27f9d1ea033a40053ef64833b3777 Mon Sep 17 00:00:00 2001 From: Jiong Wang Date: Fri, 16 Jan 2015 10:20:40 +0000 Subject: [PATCH] [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 --- gcc/ChangeLog | 5 +++++ gcc/expmed.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 65a80c56ea1..4d9fbca10fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-15 Jiong Wang + + * expmed.c (store_bit_field_using_insv): Improve warning message. + Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED. + 2015-01-15 Jiong Wang PR rtl-optimization/64011 diff --git a/gcc/expmed.c b/gcc/expmed.c index beedfc052b6..18e62a000b4 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -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; } -- 2.30.2