diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2013-12-02 18:00:47 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2013-12-02 18:00:47 +0000 |
commit | 72ee07fb7620604030a5713bf8967af64dfbe5c2 (patch) | |
tree | a81fc910c766b9cf446e2423b21464bd1c82f547 /gcc/function.c | |
parent | 76004bbc2d0f71138336842eb9d98f75e18b6df0 (diff) | |
download | gcc-72ee07fb7620604030a5713bf8967af64dfbe5c2.zip gcc-72ee07fb7620604030a5713bf8967af64dfbe5c2.tar.gz gcc-72ee07fb7620604030a5713bf8967af64dfbe5c2.tar.bz2 |
re PR target/58115 (testcase gcc.target/i386/intrinsics_4.c failure)
2013-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR target/58115
* function.c (invoke_set_current_function_hook): Call
targetm.set_current_function after setting this_fn_optabs.
From-SVN: r205593
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c index 00c372f..2c8d781 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4405,7 +4405,6 @@ invoke_set_current_function_hook (tree fndecl) cl_optimization_restore (&global_options, TREE_OPTIMIZATION (opts)); } - targetm.set_current_function (fndecl); this_fn_optabs = this_target_optabs; if (opts != optimization_default_node) @@ -4415,6 +4414,8 @@ invoke_set_current_function_hook (tree fndecl) this_fn_optabs = (struct target_optabs *) TREE_OPTIMIZATION_OPTABS (opts); } + + targetm.set_current_function (fndecl); } } |