------- Comment #8 from kretz at kde dot org 2010-08-12 22:08 ------- Right, but then I probably have two bugs to report: 1. always_inline is not honored (heuristics are applied even though they shouldn't) 2. inlining of small functions does not work reliably (i.e. a function declared with "inline" and containing just one ore two instructions is discarded for inlining by GCC). I think I've seen this on earlier compiler versions too - which is why I added the always_inline attributes in the first place. I've never been able to reduce a testcase, though.
I believe this testcase shows both problems, no? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45267