From a809d56440d84fd363aa542a37d69275fd2930c5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 20 Jan 2017 09:41:22 +0100 Subject: [PATCH] Fix --enable-gather-detailed-mem-stats 2017-01-20 Martin Liska * read-rtl-function.c (function_reader::create_function): Use build_decl instread of build_decl_stat. From-SVN: r244686 --- gcc/ChangeLog | 5 +++++ gcc/read-rtl-function.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ecda957912..d38e2a5a249 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Martin Liska + + * read-rtl-function.c (function_reader::create_function): Use + build_decl instread of build_decl_stat. + 2017-01-20 Andrew Senkevich * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics. diff --git a/gcc/read-rtl-function.c b/gcc/read-rtl-function.c index c5cb3f7953f..9ef9610dde9 100644 --- a/gcc/read-rtl-function.c +++ b/gcc/read-rtl-function.c @@ -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; -- 2.30.2