From 231120e5d40bc975c1acae42f2c2ea289b0425ae Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 17 May 2014 23:06:33 +0000 Subject: 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_alloc instead of ggc_internal_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 --- gcc/java/ChangeLog | 4 ++++ gcc/java/constants.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/java') diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 1c357fe..b6b6c19 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2014-05-17 Trevor Saunders + + * constants.c (set_constant_entry): Adjust. + 2014-05-06 Richard Sandiford * boehm.c (mark_reference_fields): Don't update the mask when diff --git a/gcc/java/constants.c b/gcc/java/constants.c index 7e9cf2e7..c0295e9 100644 --- a/gcc/java/constants.c +++ b/gcc/java/constants.c @@ -46,8 +46,8 @@ set_constant_entry (CPool *cpool, int index, int tag, jword value) if (cpool->data == NULL) { cpool->capacity = 100; - cpool->tags = (uint8 *) ggc_alloc_cleared_atomic (sizeof (uint8) - * cpool->capacity); + cpool->tags = (uint8 *) ggc_internal_cleared_alloc (sizeof (uint8) + * cpool->capacity); cpool->data = ggc_alloc_cleared_vec_cpool_entry (sizeof (union cpool_entry), cpool->capacity); -- cgit v1.1