diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2017-07-29 01:37:54 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2017-07-29 01:37:54 +0000 |
commit | f719e2f1d7675d997fda88be87f65e350d563bc3 (patch) | |
tree | b2fbc4aafde1508f5491c83d2b4f015dfa4c4698 /gcc/tree.c | |
parent | 57a93c6a66ad463be252bf46b4506445666680a4 (diff) | |
download | gcc-f719e2f1d7675d997fda88be87f65e350d563bc3.zip gcc-f719e2f1d7675d997fda88be87f65e350d563bc3.tar.gz gcc-f719e2f1d7675d997fda88be87f65e350d563bc3.tar.bz2 |
use c++ instead of make_node_stat
gcc/ChangeLog:
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree.c (make_node_stat): rename to make_node.
(build_tree_list_stat): Adjust.
(build0_stat): Likewise.
(build2_stat): Likewise.
(build3_stat): Likewise.
(build4_stat): Likewise.
(build5_stat): Likewise.
(build_decl_stat): Likewise.
* tree.h (make_node_stat): Adjust prototype.
(make_node): remove macro.
From-SVN: r250694
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -997,7 +997,7 @@ allocate_decl_uid (void) Achoo! I got a code in the node. */ tree -make_node_stat (enum tree_code code MEM_STAT_DECL) +make_node (enum tree_code code MEM_STAT_DECL) { tree t; enum tree_code_class type = TREE_CODE_CLASS (code); @@ -2870,7 +2870,7 @@ nreverse (tree t) tree build_tree_list_stat (tree parm, tree value MEM_STAT_DECL) { - tree t = make_node_stat (TREE_LIST PASS_MEM_STAT); + tree t = make_node (TREE_LIST PASS_MEM_STAT); TREE_PURPOSE (t) = parm; TREE_VALUE (t) = value; return t; @@ -4371,7 +4371,7 @@ build0_stat (enum tree_code code, tree tt MEM_STAT_DECL) gcc_assert (TREE_CODE_LENGTH (code) == 0); - t = make_node_stat (code PASS_MEM_STAT); + t = make_node (code PASS_MEM_STAT); TREE_TYPE (t) = tt; return t; @@ -4474,7 +4474,7 @@ build2_stat (enum tree_code code, tree tt, tree arg0, tree arg1 MEM_STAT_DECL) gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0)) && ptrofftype_p (TREE_TYPE (arg1))); - t = make_node_stat (code PASS_MEM_STAT); + t = make_node (code PASS_MEM_STAT); TREE_TYPE (t) = tt; /* Below, we automatically set TREE_SIDE_EFFECTS and TREE_READONLY for the @@ -4543,7 +4543,7 @@ build3_stat (enum tree_code code, tree tt, tree arg0, tree arg1, gcc_assert (TREE_CODE_LENGTH (code) == 3); gcc_assert (TREE_CODE_CLASS (code) != tcc_vl_exp); - t = make_node_stat (code PASS_MEM_STAT); + t = make_node (code PASS_MEM_STAT); TREE_TYPE (t) = tt; read_only = 1; @@ -4583,7 +4583,7 @@ build4_stat (enum tree_code code, tree tt, tree arg0, tree arg1, gcc_assert (TREE_CODE_LENGTH (code) == 4); - t = make_node_stat (code PASS_MEM_STAT); + t = make_node (code PASS_MEM_STAT); TREE_TYPE (t) = tt; side_effects = TREE_SIDE_EFFECTS (t); @@ -4610,7 +4610,7 @@ build5_stat (enum tree_code code, tree tt, tree arg0, tree arg1, gcc_assert (TREE_CODE_LENGTH (code) == 5); - t = make_node_stat (code PASS_MEM_STAT); + t = make_node (code PASS_MEM_STAT); TREE_TYPE (t) = tt; side_effects = TREE_SIDE_EFFECTS (t); @@ -4745,7 +4745,7 @@ build_decl_stat (location_t loc, enum tree_code code, tree name, { tree t; - t = make_node_stat (code PASS_MEM_STAT); + t = make_node (code PASS_MEM_STAT); DECL_SOURCE_LOCATION (t) = loc; /* if (type == error_mark_node) |