From: Marek Polacek Date: Wed, 2 Aug 2017 13:25:12 +0000 (+0000) Subject: re PR other/81667 (trunk/gcc/alloc-pool.h:239: possible missing initialiser ?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e9fab92d115add42280d51dc9c674aa7a5569a0;p=gcc.git re PR other/81667 (trunk/gcc/alloc-pool.h:239: possible missing initialiser ?) PR other/81667 * alloc-pool.h (base_pool_allocator): Initialize m_elt_size. From-SVN: r250829 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8bed3d3d35b..e6a464973fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-08-02 Marek Polacek + + PR other/81667 + * alloc-pool.h (base_pool_allocator): Initialize m_elt_size. + 2017-08-02 Tom de Vries Cesar Philippidis diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index a5236db3dae..1d04e5d2cfe 100644 --- a/gcc/alloc-pool.h +++ b/gcc/alloc-pool.h @@ -240,8 +240,9 @@ base_pool_allocator ::base_pool_allocator ( const char *name, size_t size MEM_STAT_DECL): m_name (name), m_id (0), m_elts_per_block (0), m_returned_free_list (NULL), m_virgin_free_list (NULL), m_virgin_elts_remaining (0), m_elts_allocated (0), - m_elts_free (0), m_blocks_allocated (0), m_block_list (NULL), m_size (size), - m_initialized (false), m_location (ALLOC_POOL_ORIGIN, false PASS_MEM_STAT) {} + m_elts_free (0), m_blocks_allocated (0), m_block_list (NULL), m_elt_size (0), + m_size (size), m_initialized (false), + m_location (ALLOC_POOL_ORIGIN, false PASS_MEM_STAT) {} /* Initialize a pool allocator. */