http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50782
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-19 08:16:34 UTC --- The interaction of the optimize attribute/pragma with inlining are "interesting". For some options we prohibit inlining (but only for the target attribute/pragma I think), otherwise the callee inherits the settings of the caller - sometimes partly.