diff options
author | Martin Liska <mliska@suse.cz> | 2017-01-20 09:41:22 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-01-20 08:41:22 +0000 |
commit | a809d56440d84fd363aa542a37d69275fd2930c5 (patch) | |
tree | d54338632fa1ff66d7033b008245425c7d49a8e1 /gcc/read-rtl-function.c | |
parent | d8ea3e7c3cd8187d6332759c42fc448e5ed1e774 (diff) | |
download | gcc-a809d56440d84fd363aa542a37d69275fd2930c5.zip gcc-a809d56440d84fd363aa542a37d69275fd2930c5.tar.gz gcc-a809d56440d84fd363aa542a37d69275fd2930c5.tar.bz2 |
Fix --enable-gather-detailed-mem-stats
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
Diffstat (limited to 'gcc/read-rtl-function.c')
-rw-r--r-- | gcc/read-rtl-function.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/read-rtl-function.c b/gcc/read-rtl-function.c index c5cb3f7..9ef9610 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; |