* cgraphunit.c (decide_is_function_needed): Don't force always_inline
to be output at -O0.
From-SVN: r113704
+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>
PR middle-end/27384
COMDAT functions that must be output only when they are needed.
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))
return true;