Hi all,

With Martins' patch at https://gcc.gnu.org/ml/gcc-patches/2015-11/msg00492.html
I'm seeing an arm bootstrap error due to a warning in the print format 
addressed in this patchlet.
bytes_avail is an unsigned HOST_WIDE_INT and so needs the %wu print format 
rather than %lu which
may not be correct on all platforms.

Bootstrap on arm-none-linux-gnueabihf now passes so I'm committing this to 
trunk as obvious.

Thanks,
Kyrill

2015-11-06  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>

    * init.c (warn_placement_new_too_small): Use %wu format
    rather than %lu when printing bytes_avail.
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 7386499..337797c 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -2447,7 +2447,7 @@ warn_placement_new_too_small (tree type, tree nelts, tree size, tree oper)
 			  "%<%T [%wu]%> and size %qwu in a region of type %qT "
 			  "and size %qwi"
 			  : "placement new constructing an object of type "
-			  "%<%T [%lu]%> and size %qwu in a region of type %qT "
+			  "%<%T [%wu]%> and size %qwu in a region of type %qT "
 			  "and size at most %qwu",
 			  type, tree_to_uhwi (nelts), bytes_need,
 			  TREE_TYPE (oper),

Reply via email to