From 7488a79fa3675d18da9dc873933ddd4395822875 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 29 Jul 2017 01:39:03 +0000 Subject: [PATCH] use C++ for {make,build}_vector_stat gcc/ChangeLog: 2017-07-28 Trevor Saunders * tree.c (make_vector_stat): Remove _stat from name. (build_vector_stat): Likewise. * tree.h (make_vector_stat): Remove macro. (build_vector_stat): Likewise. From-SVN: r250705 --- gcc/ChangeLog | 7 +++++++ gcc/tree.c | 4 ++-- gcc/tree.h | 6 ++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c86c225f08..6e3dc0d4979 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-07-28 Trevor Saunders + + * tree.c (make_vector_stat): Remove _stat from name. + (build_vector_stat): Likewise. + * tree.h (make_vector_stat): Remove macro. + (build_vector_stat): Likewise. + 2017-07-28 Trevor Saunders * tree.h (build_var_debug_value): Remove prototype. diff --git a/gcc/tree.c b/gcc/tree.c index e630316300f..a7a030e25f2 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1681,7 +1681,7 @@ cst_and_fits_in_hwi (const_tree x) /* Build a newly constructed VECTOR_CST node of length LEN. */ tree -make_vector_stat (unsigned len MEM_STAT_DECL) +make_vector (unsigned len MEM_STAT_DECL) { tree t; unsigned length = (len - 1) * sizeof (tree) + sizeof (struct tree_vector); @@ -1700,7 +1700,7 @@ make_vector_stat (unsigned len MEM_STAT_DECL) are in a list pointed to by VALS. */ tree -build_vector_stat (tree type, tree *vals MEM_STAT_DECL) +build_vector (tree type, tree *vals MEM_STAT_DECL) { int over = 0; unsigned cnt = 0; diff --git a/gcc/tree.h b/gcc/tree.h index d765c31cda3..637e99088a1 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4002,10 +4002,8 @@ extern tree force_fit_type (tree, const wide_int_ref &, int, bool); extern tree build_int_cst (tree, HOST_WIDE_INT); extern tree build_int_cstu (tree type, unsigned HOST_WIDE_INT cst); extern tree build_int_cst_type (tree, HOST_WIDE_INT); -extern tree make_vector_stat (unsigned MEM_STAT_DECL); -#define make_vector(n) make_vector_stat (n MEM_STAT_INFO) -extern tree build_vector_stat (tree, tree * MEM_STAT_DECL); -#define build_vector(t,v) build_vector_stat (t, v MEM_STAT_INFO) +extern tree make_vector (unsigned CXX_MEM_STAT_INFO); +extern tree build_vector (tree, tree * CXX_MEM_STAT_INFO); extern tree build_vector_from_ctor (tree, vec *); extern tree build_vector_from_val (tree, tree); extern void recompute_constructor_flags (tree); -- 2.30.2