http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53991
--- Comment #5 from Jan Hubicka <hubicka at ucw dot cz> --- > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53991 > > --- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> --- > The inlining is failed in ipa-inline.c, around line 294: > > /* TM pure functions should not be inlined into non-TM_pure > functions. */ > else if (is_tm_pure (callee->symbol.decl) > && !is_tm_pure (e->caller->symbol.decl)) > { > e->inline_failed = CIF_UNSPECIFIED; > inlinable = false; > } Instead of CIF_UNSPECIFIED we should have warning/error for this case. Jakub, what should be the behaviour when !tm_pure always_inline is called from tm_pure function? Honza