https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115679
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #2) > > With -Og it's usually that the always-inline function is called indirectly - > > that's an unsupported case. > We can probably add CIF code for functions that were called indirectly > but are no more, so this is reported better. I will cook up patch. Yes it is indirect function call. So yes this is invalid at -Og.