https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113596
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Why do you think this is a bug? You are forcing a function which calls alloca to be inlined, GCC DOES not normally inline functions which call alloca due to not restoring the stack pointer after the return of the inlined function.