Commit 39d970d7 by Trevor Saunders Committed by Trevor Saunders

use c++ instead of _stat for copy_node_stat

gcc/cp/ChangeLog:

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

	* lex.c (copy_decl): Adjust.
	(copy_type): Likewise.

gcc/ChangeLog:

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

	* tree.c (copy_node_stat): Rename to copy_node.
	(build_distinct_type_copy): Adjust.
	* tree.h (copy_node_stat): Adjust prototype.
	(copy_node): Remove macro.

From-SVN: r250695
parent f719e2f1
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree.c (copy_node_stat): Rename to copy_node.
(build_distinct_type_copy): Adjust.
* tree.h (copy_node_stat): Adjust prototype.
(copy_node): Remove macro.
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.
......
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* lex.c (copy_decl): Adjust.
(copy_type): Likewise.
2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/71570
......
......@@ -766,7 +766,7 @@ copy_decl (tree decl MEM_STAT_DECL)
{
tree copy;
copy = copy_node_stat (decl PASS_MEM_STAT);
copy = copy_node (decl PASS_MEM_STAT);
cxx_dup_lang_specific_decl (copy);
return copy;
}
......@@ -799,7 +799,7 @@ copy_type (tree type MEM_STAT_DECL)
{
tree copy;
copy = copy_node_stat (type PASS_MEM_STAT);
copy = copy_node (type PASS_MEM_STAT);
copy_lang_type (copy);
return copy;
}
......
......@@ -1128,7 +1128,7 @@ free_node (tree node)
TREE_CHAIN, if it has one, is zero and it has a fresh uid. */
tree
copy_node_stat (tree node MEM_STAT_DECL)
copy_node (tree node MEM_STAT_DECL)
{
tree t;
enum tree_code code = TREE_CODE (node);
......@@ -6684,7 +6684,7 @@ build_aligned_type (tree type, unsigned int align)
tree
build_distinct_type_copy (tree type MEM_STAT_DECL)
{
tree t = copy_node_stat (type PASS_MEM_STAT);
tree t = copy_node (type PASS_MEM_STAT);
TYPE_POINTER_TO (t) = 0;
TYPE_REFERENCE_TO (t) = 0;
......
......@@ -3897,8 +3897,7 @@ extern void free_node (tree);
/* Make a copy of a node, with all the same contents. */
extern tree copy_node_stat (tree MEM_STAT_DECL);
#define copy_node(t) copy_node_stat (t MEM_STAT_INFO)
extern tree copy_node (tree CXX_MEM_STAT_INFO);
/* Make a copy of a chain of TREE_LIST 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