Fix --enable-gather-detailed-mem-stats
authorMartin Liska <mliska@suse.cz>
Fri, 20 Jan 2017 08:41:22 +0000 (09:41 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 20 Jan 2017 08:41:22 +0000 (08:41 +0000)
2017-01-20  Martin Liska  <mliska@suse.cz>

* read-rtl-function.c (function_reader::create_function): Use
build_decl instread of build_decl_stat.

From-SVN: r244686

gcc/ChangeLog
gcc/read-rtl-function.c

index 1ecda9579122ac50a2c7ae5c52974fde8c497d22..d38e2a5a2492832a380589846428044734f67dbd 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-20  Martin Liska  <mliska@suse.cz>
+
+       * read-rtl-function.c (function_reader::create_function): Use
+       build_decl instread of build_decl_stat.
+
 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
 
        * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
index c5cb3f7953f7cf587e14c148445d3474a7d70745..9ef9610dde9be0db05a76f4b778e5d93a47c5075 100644 (file)
@@ -481,8 +481,7 @@ function_reader::create_function ()
   tree return_type = int_type;
   tree arg_types[3] = {int_type, int_type, int_type};
   tree fn_type = build_function_type_array (return_type, 3, arg_types);
-  tree fndecl = build_decl_stat (UNKNOWN_LOCATION, FUNCTION_DECL, fn_name,
-                                fn_type);
+  tree fndecl = build_decl (UNKNOWN_LOCATION, FUNCTION_DECL, fn_name, fn_type);
   tree resdecl = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE,
                             return_type);
   DECL_ARTIFICIAL (resdecl) = 1;