[cp][committed] Fix bootstrap on arm due to print format warning
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 6 Nov 2015 13:36:17 +0000 (13:36 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 6 Nov 2015 13:36:17 +0000 (13:36 +0000)
* init.c (warn_placement_new_too_small): Use %wu format
rather than %lu when printing bytes_avail.

From-SVN: r229849

gcc/cp/ChangeLog
gcc/cp/init.c

index e780c868b623c88106d853a378e60096600463f6..910005d985ad9c941f3648ecabf892eea275ad5b 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * init.c (warn_placement_new_too_small): Use %wu format
+       rather than %lu when printing bytes_avail.
+
 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
            Thomas Schwinge  <thomas@codesourcery.com>
            James Norris  <jnorris@codesourcery.com>
index 7386499d570936479970d80dc2aa0780db5f7ce0..337797c986ba94bab27b5d1ec73b6d7c658f6cdd 100644 (file)
@@ -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),