diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-05-17 23:06:33 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2014-05-17 23:06:33 +0000 |
commit | 231120e5d40bc975c1acae42f2c2ea289b0425ae (patch) | |
tree | 8d1527effaee14026c419a32b174fb4c0a8ad57b /gcc/vec.h | |
parent | 9b8ac5d240574638d6373805f233b69dace1170d (diff) | |
download | gcc-231120e5d40bc975c1acae42f2c2ea289b0425ae.zip gcc-231120e5d40bc975c1acae42f2c2ea289b0425ae.tar.gz gcc-231120e5d40bc975c1acae42f2c2ea289b0425ae.tar.bz2 |
rm a bunch of _stat allocation functions
Now that we can use c++ default arguments there's no reason to use
functions and wrapper macros.
gcc/ChangeLog:
* dwarf2out.c (tree_add_const_value_attribute): Call
ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
* gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
instead of ggc_internal_<x>alloc_stat.
* ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
(ggc_realloc): Likewise.
* ggc-none.c (ggc_internal_alloc): Likewise.
(ggc_internal_cleared_alloc): Likewise.
* ggc-page.c: Likewise.
* ggc.h (ggc_internal_alloc_stat): Likewise.
(ggc_internal_alloc): Remove macro.
(ggc_internal_cleared_alloc_stat): Drop _stat suffix.
(ggc_internal_cleared_alloc): Remove macro.
(GGC_RESIZEVEC): Adjust.
(ggc_resizevar): Remove macro.
(ggc_internal_vec_alloc_stat): Drop _stat suffix.
(ggc_internal_cleared_vec_alloc_stat): Likewise.
(ggc_internal_vec_cleared_alloc): Remove macro.
(ggc_alloc_atomic_stat): Drop _stat suffix.
(ggc_alloc_atomic): Remove macro.
(ggc_alloc_cleared_atomic): Remove macro.
(ggc_alloc_string_stat): Drop _stat suffix.
(ggc_alloc_string): Remove macro.
(ggc_alloc_rtx_def_stat): Adjust.
(ggc_alloc_tree_node_stat): Likewise.
(ggc_alloc_cleared_tree_node_stat): Likewise.
(ggc_alloc_cleared_gimple_statement_stat): Likewise.
(ggc_alloc_cleared_simd_clone_stat): Likewise.
* gimple.c (gimple_build_omp_for): Likewise.
(gimple_copy): Likewise.
* stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
* toplev.c (realloc_for_line_map): Adjust.
* tree-data-ref.h (lambda_vector_new): Likewise.
* tree-phinodes.c (allocate_phi_node): Likewise.
* tree.c (grow_tree_vec_stat): Likewise.
* vec.h (va_gc::reserve): Adjust.
gcc/java/ChangeLog:
* constants.c (set_constant_entry): Adjust.
From-SVN: r210565
Diffstat (limited to 'gcc/vec.h')
-rw-r--r-- | gcc/vec.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -48,9 +48,10 @@ along with GCC; see the file COPYING3. If not see weak. There are files compiled with -DGENERATOR_FILE that already include ggc.h. We only need to provide these definitions if ggc.h has not been included. Sigh. */ + extern void ggc_free (void *); extern size_t ggc_round_alloc_size (size_t requested_size); - extern void *ggc_realloc_stat (void *, size_t MEM_STAT_DECL); + extern void *ggc_realloc (void *, size_t CXX_MEM_STAT_INFO); # endif // GCC_GGC_H #endif // VEC_GC_ENABLED @@ -396,7 +397,7 @@ va_gc::reserve (vec<T, A, vl_embed> *&v, unsigned reserve, bool exact size = vec_offset + alloc * elt_size; unsigned nelem = v ? v->length () : 0; - v = static_cast <vec<T, A, vl_embed> *> (::ggc_realloc_stat (v, size + v = static_cast <vec<T, A, vl_embed> *> (::ggc_realloc (v, size PASS_MEM_STAT)); v->embedded_init (alloc, nelem); } |