Commit 0184bd46 by Jan Hubicka Committed by Jan Hubicka

cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling…

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
parent ddb45080
Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
before calling tree_inlinable_function_p.
2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
......
...@@ -165,6 +165,7 @@ cgraph_finalize_compilation_unit () ...@@ -165,6 +165,7 @@ cgraph_finalize_compilation_unit ()
if (lang_hooks.callgraph.lower_function) if (lang_hooks.callgraph.lower_function)
(*lang_hooks.callgraph.lower_function) (decl); (*lang_hooks.callgraph.lower_function) (decl);
current_function_decl = node->decl;
if (!node->needed && !DECL_COMDAT (node->decl)) if (!node->needed && !DECL_COMDAT (node->decl))
node->local.can_inline_once = tree_inlinable_function_p (decl, 1); node->local.can_inline_once = tree_inlinable_function_p (decl, 1);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment