Commit 5d342ef9 by Jan Hubicka Committed by Jan Hubicka

cgraphunit.c (decide_is_function_needed): Don't force always_inline to be output at -O0.

	* cgraphunit.c (decide_is_function_needed): Don't force always_inline
	to be output at -O0.

From-SVN: r113704
parent 7ebcc52c
2006-05-11 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (decide_is_function_needed): Don't force always_inline
to be output at -O0.
2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR middle-end/27384 PR middle-end/27384
......
...@@ -219,9 +219,11 @@ decide_is_function_needed (struct cgraph_node *node, tree decl) ...@@ -219,9 +219,11 @@ decide_is_function_needed (struct cgraph_node *node, tree decl)
COMDAT functions that must be output only when they are needed. COMDAT functions that must be output only when they are needed.
When not optimizing, also output the static functions. (see When not optimizing, also output the static functions. (see
PR25962) PR25962), but don't do so for always_inline functions.
*/ */
if (((TREE_PUBLIC (decl) || !optimize) && !flag_whole_program) if (((TREE_PUBLIC (decl)
|| (!optimize && !node->local.disregard_inline_limits))
&& !flag_whole_program)
&& !DECL_COMDAT (decl) && !DECL_EXTERNAL (decl)) && !DECL_COMDAT (decl) && !DECL_EXTERNAL (decl))
return true; return true;
......
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