From 9f896a4520d6cf6f19b7aeeb1057bf2770ce4d64 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 29 Jul 2017 01:38:25 +0000 Subject: [PATCH] use c++ instead of {make,grow}_tree_vec_stat gcc/ChangeLog: 2017-07-28 Trevor Saunders * tree.c (make_tree_vec_stat): Remove _stat from name. (grow_tree_vec_stat): Likewise. * tree.h (make_tree_vec_stat): Adjust prototype. (grow_tree_vec_stat): Likewise. (make_tree_vec): Remove macro. (grow_tree_vec): Likewise. From-SVN: r250699 --- gcc/ChangeLog | 9 +++++++++ gcc/tree.c | 4 ++-- gcc/tree.h | 6 ++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2219031028b..69204a82e8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2017-07-28 Trevor Saunders + + * tree.c (make_tree_vec_stat): Remove _stat from name. + (grow_tree_vec_stat): Likewise. + * tree.h (make_tree_vec_stat): Adjust prototype. + (grow_tree_vec_stat): Likewise. + (make_tree_vec): Remove macro. + (grow_tree_vec): Likewise. + 2017-07-28 Trevor Saunders * fold-const.c (fold_build1_stat_loc): Adjust. diff --git a/gcc/tree.c b/gcc/tree.c index bb9339030ef..931f987e93a 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2265,7 +2265,7 @@ make_int_cst (int len, int ext_len MEM_STAT_DECL) /* Build a newly constructed TREE_VEC node of length LEN. */ tree -make_tree_vec_stat (int len MEM_STAT_DECL) +make_tree_vec (int len MEM_STAT_DECL) { tree t; size_t length = (len - 1) * sizeof (tree) + sizeof (struct tree_vec); @@ -2283,7 +2283,7 @@ make_tree_vec_stat (int len MEM_STAT_DECL) /* Grow a TREE_VEC node to new length LEN. */ tree -grow_tree_vec_stat (tree v, int len MEM_STAT_DECL) +grow_tree_vec (tree v, int len MEM_STAT_DECL) { gcc_assert (TREE_CODE (v) == TREE_VEC); diff --git a/gcc/tree.h b/gcc/tree.h index 70803a02973..636dc0926e1 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -3916,13 +3916,11 @@ extern tree make_int_cst (int, int CXX_MEM_STAT_INFO); /* Make a TREE_VEC. */ -extern tree make_tree_vec_stat (int MEM_STAT_DECL); -#define make_tree_vec(t) make_tree_vec_stat (t MEM_STAT_INFO) +extern tree make_tree_vec (int CXX_MEM_STAT_INFO); /* Grow a TREE_VEC. */ -extern tree grow_tree_vec_stat (tree v, int MEM_STAT_DECL); -#define grow_tree_vec(v, t) grow_tree_vec_stat (v, t MEM_STAT_INFO) +extern tree grow_tree_vec (tree v, int CXX_MEM_STAT_INFO); /* Construct various types of nodes. */ -- 2.30.2