diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-08-02 13:25:12 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-08-02 13:25:12 +0000 |
commit | 463c67fee6a9b7da07f154a297f1d6e704a55760 (patch) | |
tree | bee93c206ff7d3e5f7506e7209f8af4afe23b466 | |
parent | ca337b3ce3871b9b11991785bcb7d989844ebe0f (diff) | |
download | gcc-463c67fee6a9b7da07f154a297f1d6e704a55760.tar.gz |
PR other/81667
* alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250829 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/alloc-pool.h | 5 |
2 files changed, 8 insertions, 2 deletions
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 <polacek@redhat.com> + + PR other/81667 + * alloc-pool.h (base_pool_allocator): Initialize m_elt_size. + 2017-08-02 Tom de Vries <tom@codesourcery.com> Cesar Philippidis <cesar@codesourcery.com> 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 <TBlockAllocator>::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. */ |