From: Trevor Saunders Date: Sat, 29 Jul 2017 01:39:10 +0000 (+0000) Subject: use c++ for build_tree_list{,_vec}_stat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=623ee2853e067f8f5c18b5673b57dc64d0684864;p=gcc.git use c++ for build_tree_list{,_vec}_stat gcc/ChangeLog: 2017-07-28 Trevor Saunders * tree.c (build_tree_list_vec_stat): Remove _stat from name. (build_tree_list_stat): Likewise. * tree.h (build_tree_list): Remove macro. (build_tree_list_vec): Likewise. From-SVN: r250706 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e3dc0d4979..f3295d68d33 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-07-28 Trevor Saunders + + * tree.c (build_tree_list_vec_stat): Remove _stat from name. + (build_tree_list_stat): Likewise. + * tree.h (build_tree_list): Remove macro. + (build_tree_list_vec): Likewise. + 2017-07-28 Trevor Saunders * tree.c (make_vector_stat): Remove _stat from name. diff --git a/gcc/tree.c b/gcc/tree.c index a7a030e25f2..0c5acd6c8a6 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2868,7 +2868,7 @@ nreverse (tree t) purpose and value fields are PARM and VALUE. */ tree -build_tree_list_stat (tree parm, tree value MEM_STAT_DECL) +build_tree_list (tree parm, tree value MEM_STAT_DECL) { tree t = make_node (TREE_LIST PASS_MEM_STAT); TREE_PURPOSE (t) = parm; @@ -2879,7 +2879,7 @@ build_tree_list_stat (tree parm, tree value MEM_STAT_DECL) /* Build a chain of TREE_LIST nodes from a vector. */ tree -build_tree_list_vec_stat (const vec *vec MEM_STAT_DECL) +build_tree_list_vec (const vec *vec MEM_STAT_DECL) { tree ret = NULL_TREE; tree *pp = &ret; @@ -2887,7 +2887,7 @@ build_tree_list_vec_stat (const vec *vec MEM_STAT_DECL) tree t; FOR_EACH_VEC_SAFE_ELT (vec, i, t) { - *pp = build_tree_list_stat (NULL, t PASS_MEM_STAT); + *pp = build_tree_list (NULL, t PASS_MEM_STAT); pp = &TREE_CHAIN (*pp); } return ret; diff --git a/gcc/tree.h b/gcc/tree.h index 637e99088a1..e9e7931b1ae 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4021,10 +4021,8 @@ extern tree build_minus_one_cst (tree); extern tree build_all_ones_cst (tree); extern tree build_zero_cst (tree); extern tree build_string (int, const char *); -extern tree build_tree_list_stat (tree, tree MEM_STAT_DECL); -#define build_tree_list(t, q) build_tree_list_stat (t, q MEM_STAT_INFO) -extern tree build_tree_list_vec_stat (const vec *MEM_STAT_DECL); -#define build_tree_list_vec(v) build_tree_list_vec_stat (v MEM_STAT_INFO) +extern tree build_tree_list (tree, tree CXX_MEM_STAT_INFO); +extern tree build_tree_list_vec (const vec * CXX_MEM_STAT_INFO); extern tree build_decl (location_t, enum tree_code, tree, tree CXX_MEM_STAT_INFO); extern tree build_fn_decl (const char *, tree);