aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-04-21 08:58:39 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-04-21 08:58:39 +0000
commitad32f0675e6596552ec670ef4afc71f0803be2fa (patch)
tree1685c097faa80ff182dbc65cdb58d72fd5b911a1 /gcc/cp/lex.c
parent666f7903e0334ef65669277383e4028a4fe9ef0c (diff)
downloadgcc-ad32f0675e6596552ec670ef4afc71f0803be2fa.zip
gcc-ad32f0675e6596552ec670ef4afc71f0803be2fa.tar.gz
gcc-ad32f0675e6596552ec670ef4afc71f0803be2fa.tar.bz2
tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
2017-04-21 Richard Biener <rguenther@suse.de> * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO. (build_distinct_type_copy): Likewise. (build_variant_type_copy): Likewise. * tree.c (build_qualified_type): Pass down mem-stat info. (build_distinct_type_copy): Likewise. (build_variant_type_copy): Likewise. cp/ * cp-tree.h (copy_decl): Annotate with CXX_MEM_STAT_INFO. (copy_type): Likewise. * lex.c (copy_decl): Pass down mem-stat info. (copy_type): Likewise. From-SVN: r247053
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index ad63186..0f8a269 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -607,11 +607,11 @@ cxx_dup_lang_specific_decl (tree node)
/* Copy DECL, including any language-specific parts. */
tree
-copy_decl (tree decl)
+copy_decl (tree decl MEM_STAT_DECL)
{
tree copy;
- copy = copy_node (decl);
+ copy = copy_node_stat (decl PASS_MEM_STAT);
cxx_dup_lang_specific_decl (copy);
return copy;
}
@@ -645,11 +645,11 @@ copy_lang_type (tree node)
/* Copy TYPE, including any language-specific parts. */
tree
-copy_type (tree type)
+copy_type (tree type MEM_STAT_DECL)
{
tree copy;
- copy = copy_node (type);
+ copy = copy_node_stat (type PASS_MEM_STAT);
copy_lang_type (copy);
return copy;
}