This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix object init in alloc-pool.h
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 6 Nov 2015 13:17:38 +0100 (CET)
- Subject: [PATCH] Fix object init in alloc-pool.h
- Authentication-results: sourceware.org; auth=none
The previous allocator never initialized objects thus switch to
default initialization.
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
Richard.
Index: gcc/alloc-pool.h
===================================================================
--- gcc/alloc-pool.h (revision 229804)
+++ gcc/alloc-pool.h (working copy)
@@ -480,7 +480,7 @@ public:
inline T *
allocate () ATTRIBUTE_MALLOC
{
- return ::new (m_allocator.allocate ()) T ();
+ return ::new (m_allocator.allocate ()) T;
}
inline void