Fix bootstrap failure with --enable-gather-detailed-mem-stats.
commit18e1fd7565cd40baf448858cb069d25b99338a08
authorDiego Novillo <dnovillo@google.com>
Tue, 27 Nov 2012 18:20:30 +0000 (27 13:20 -0500)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Tue, 27 Nov 2012 18:20:30 +0000 (27 13:20 -0500)
tree462c1557becffd23ebfd7a7d0d8d499177490783
parentd8d638d9e24917b0d4e42c93fcac2b740a8f0eab
Fix bootstrap failure with --enable-gather-detailed-mem-stats.

This patch restores bootstrap when detailed memory stats are enabled.
No functional changes.

Tested on x86_64.  Committed to trunk.

2012-11-27  Diego Novillo  <dnovillo@google.com>

* vec.h: Replace 'class vec' with 'struct vec' everywhere.
(ggc_internal_cleared_alloc_stat): Remove.
(va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call.
(va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call.
(vec<T, A, vl_embed>::copy): Replace ALONE_MEM_STAT_DECL with
ALONE_CXX_MEM_STAT_INFO.
(vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO.
(vec_safe_reserve_exact): Likewise.
(vec_alloc): Likewise.
(vec_safe_grow): Likewise.
(vec_safe_grow_cleared): Likewise.
(vec_safe_push): Likewise.
(vec_safe_insert): Likewise.
(vec_safe_splice): Likewise.
(vec_alloc): Likewise.
(vec_check_alloc): Likewise.

From-SVN: r193864
gcc/ChangeLog
gcc/vec.h