diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2015-11-06 13:36:17 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2015-11-06 13:36:17 +0000 |
commit | c047b6943474ab93147434cf9c61c168103e955f (patch) | |
tree | e060cb84f8e8ed20032151aa206a60a9bd80711f /gcc | |
parent | b036c6c53edca64a63460f3976494bd011c5ffb6 (diff) | |
download | gcc-c047b6943474ab93147434cf9c61c168103e955f.zip gcc-c047b6943474ab93147434cf9c61c168103e955f.tar.gz gcc-c047b6943474ab93147434cf9c61c168103e955f.tar.bz2 |
[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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/init.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e780c86..910005d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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> 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), |