From: Kyrylo Tkachov Date: Fri, 6 Nov 2015 13:36:17 +0000 (+0000) Subject: [cp][committed] Fix bootstrap on arm due to print format warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c047b6943474ab93147434cf9c61c168103e955f;p=gcc.git [cp][committed] Fix bootstrap on arm due to print format warning * init.c (warn_placement_new_too_small): Use %wu format rather than %lu when printing bytes_avail. From-SVN: r229849 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e780c868b62..910005d985a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2015-11-06 Kyrylo Tkachov + + * init.c (warn_placement_new_too_small): Use %wu format + rather than %lu when printing bytes_avail. + 2015-11-05 Cesar Philippidis Thomas Schwinge James Norris diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 7386499d570..337797c986b 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),