Commit 9f896a45 by Trevor Saunders Committed by Trevor Saunders

use c++ instead of {make,grow}_tree_vec_stat

gcc/ChangeLog:

2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* 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
parent 6db60760
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* 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 <tbsaunde+gcc@tbsaunde.org>
* fold-const.c (fold_build1_stat_loc): Adjust. * fold-const.c (fold_build1_stat_loc): Adjust.
(fold_build2_stat_loc): Likewise. (fold_build2_stat_loc): Likewise.
(fold_build3_stat_loc): Likewise. (fold_build3_stat_loc): Likewise.
......
...@@ -2265,7 +2265,7 @@ make_int_cst (int len, int ext_len MEM_STAT_DECL) ...@@ -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. */ /* Build a newly constructed TREE_VEC node of length LEN. */
tree tree
make_tree_vec_stat (int len MEM_STAT_DECL) make_tree_vec (int len MEM_STAT_DECL)
{ {
tree t; tree t;
size_t length = (len - 1) * sizeof (tree) + sizeof (struct tree_vec); size_t length = (len - 1) * sizeof (tree) + sizeof (struct tree_vec);
...@@ -2283,7 +2283,7 @@ make_tree_vec_stat (int len MEM_STAT_DECL) ...@@ -2283,7 +2283,7 @@ make_tree_vec_stat (int len MEM_STAT_DECL)
/* Grow a TREE_VEC node to new length LEN. */ /* Grow a TREE_VEC node to new length LEN. */
tree 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); gcc_assert (TREE_CODE (v) == TREE_VEC);
......
...@@ -3916,13 +3916,11 @@ extern tree make_int_cst (int, int CXX_MEM_STAT_INFO); ...@@ -3916,13 +3916,11 @@ extern tree make_int_cst (int, int CXX_MEM_STAT_INFO);
/* Make a TREE_VEC. */ /* Make a TREE_VEC. */
extern tree make_tree_vec_stat (int MEM_STAT_DECL); extern tree make_tree_vec (int CXX_MEM_STAT_INFO);
#define make_tree_vec(t) make_tree_vec_stat (t MEM_STAT_INFO)
/* Grow a TREE_VEC. */ /* Grow a TREE_VEC. */
extern tree grow_tree_vec_stat (tree v, int MEM_STAT_DECL); extern tree grow_tree_vec (tree v, int CXX_MEM_STAT_INFO);
#define grow_tree_vec(v, t) grow_tree_vec_stat (v, t MEM_STAT_INFO)
/* Construct various types of nodes. */ /* Construct various types of nodes. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment