aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2017-08-02 13:25:12 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2017-08-02 13:25:12 +0000
commit5e9fab92d115add42280d51dc9c674aa7a5569a0 (patch)
treebee93c206ff7d3e5f7506e7209f8af4afe23b466 /gcc/alloc-pool.h
parent8699462191da3f893d0cbe939e49647e419e44a6 (diff)
downloadgcc-5e9fab92d115add42280d51dc9c674aa7a5569a0.zip
gcc-5e9fab92d115add42280d51dc9c674aa7a5569a0.tar.gz
gcc-5e9fab92d115add42280d51dc9c674aa7a5569a0.tar.bz2
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
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r--gcc/alloc-pool.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h
index a5236db..1d04e5d 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. */