diff options
author | Jan Hubicka <jh@suse.cz> | 2003-07-02 08:14:50 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-07-02 06:14:50 +0000 |
commit | 0184bd46b030b4024e07d8e93e87c4b9b7b9f7e6 (patch) | |
tree | c2cb4b199e5d0afe18182d9464f71ba116938713 /gcc/cgraphunit.c | |
parent | ddb45080b4c1eab4c83dccafbc5a50ce70270a4d (diff) | |
download | gcc-0184bd46b030b4024e07d8e93e87c4b9b7b9f7e6.zip gcc-0184bd46b030b4024e07d8e93e87c4b9b7b9f7e6.tar.gz gcc-0184bd46b030b4024e07d8e93e87c4b9b7b9f7e6.tar.bz2 |
cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_inlinable_function_p.
* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
before calling tree_inlinable_function_p.
From-SVN: r68819
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index f9e2ff6..a904eb5 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -165,6 +165,7 @@ cgraph_finalize_compilation_unit () if (lang_hooks.callgraph.lower_function) (*lang_hooks.callgraph.lower_function) (decl); + current_function_decl = node->decl; if (!node->needed && !DECL_COMDAT (node->decl)) node->local.can_inline_once = tree_inlinable_function_p (decl, 1); else |