http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46228
--- Comment #9 from Zeev Tarantov <zeev.tarantov at gmail dot com> 2010-10-30 20:05:57 UTC --- Using -fwhole-program I got sane code. But almost all programs that are not trivial cannot be compiled with -fwhole-program without LTO. At least on 4.5 branch LTO is not quite stable. "- we need to improve heuristics to figure out that inlining is smaller than call sequence (if it really is)" This would be great.