diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f83d760354e..6b499dd68b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-06 Richard Biener + + * alloc-pool.h (object_allocator::allocate): Default-initialize + object. + 2015-11-06 Richard Biener * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor. diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index 0dc05cdb719..bf9b0ebd6ee 100644 --- a/gcc/alloc-pool.h +++ b/gcc/alloc-pool.h @@ -480,7 +480,7 @@ public: inline T * allocate () ATTRIBUTE_MALLOC { - return ::new (m_allocator.allocate ()) T (); + return ::new (m_allocator.allocate ()) T; } inline void