use c++ instead of build_decl_stat
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>
Sat, 29 Jul 2017 01:38:37 +0000 (01:38 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Sat, 29 Jul 2017 01:38:37 +0000 (01:38 +0000)
gcc/ChangeLog:

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

* tree.c (build_decl_stat): Remove _stat from name.
* tree.h (build_decl): Remove macro.

From-SVN: r250701

gcc/ChangeLog
gcc/tree.c
gcc/tree.h

index 6423ec5878ba956cb33ac72c0962957e3bd1bcb7..21d46e012d4778b3c78a83699deff717475a4c0e 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
+
+       * tree.c (build_decl_stat): Remove _stat from name.
+       * tree.h (build_decl): Remove macro.
+
 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
 
        * gimple.c (gimple_build_with_ops_stat): Adjust.
index 931f987e93a254a0d264e1da9332230b480b0e48..b763bc089696d5756540fda216b5dc4d60147608 100644 (file)
@@ -4740,7 +4740,7 @@ build_nt_call_vec (tree fn, vec<tree, va_gc> *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;
index 636dc0926e1f7726f1ecd3ce5e5d6b37bf91f49e..1c8fd57a465ffcbab649a9e86e3434954d53eadf 100644 (file)
@@ -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<tree, va_gc> *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);