From: Trevor Saunders Date: Sat, 29 Jul 2017 01:38:37 +0000 (+0000) Subject: use c++ instead of build_decl_stat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31b8d81fa67e6bb54e9c5bc40b017d06c4b1bfa5;p=gcc.git use c++ instead of build_decl_stat gcc/ChangeLog: 2017-07-28 Trevor Saunders * tree.c (build_decl_stat): Remove _stat from name. * tree.h (build_decl): Remove macro. From-SVN: r250701 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6423ec5878b..21d46e012d4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-28 Trevor Saunders + + * tree.c (build_decl_stat): Remove _stat from name. + * tree.h (build_decl): Remove macro. + 2017-07-28 Trevor Saunders * gimple.c (gimple_build_with_ops_stat): Adjust. diff --git a/gcc/tree.c b/gcc/tree.c index 931f987e93a..b763bc08969 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4740,7 +4740,7 @@ build_nt_call_vec (tree fn, vec *args) Other slots are initialized to 0 or null pointers. */ tree -build_decl_stat (location_t loc, enum tree_code code, tree name, +build_decl (location_t loc, enum tree_code code, tree name, tree type MEM_STAT_DECL) { tree t; diff --git a/gcc/tree.h b/gcc/tree.h index 636dc0926e1..1c8fd57a465 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4031,10 +4031,9 @@ 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_decl_stat (location_t, enum tree_code, - tree, tree MEM_STAT_DECL); +extern tree build_decl (location_t, enum tree_code, + tree, tree CXX_MEM_STAT_INFO); extern tree build_fn_decl (const char *, tree); -#define build_decl(l,c,t,q) build_decl_stat (l, c, t, q MEM_STAT_INFO) extern tree build_translation_unit_decl (tree); extern tree build_block (tree, tree, tree, tree); extern tree build_empty_stmt (location_t);