[PATCH] Fix object init in alloc-pool.h

Richard Biener rguenther@suse.de
Fri Nov 6 12:17:00 GMT 2015


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



More information about the Gcc-patches mailing list