This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]