http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56099
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-01-24 19:11:33 UTC --- (In reply to comment #2) > Created attachment 29267 [details] > asm of the testcase showing there is still no noinline function You need the inline-asm also to force the const/pure detection from happening.