https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124949
--- Comment #14 from Lukas Wunner <lukas at wunner dot de> --- (In reply to Eric Botcazou from comment #13) > > The ask is that gcc stops inlining when reaching the -Wframe-larger-than > > limit. > > Warning switches should never ever affect code generation though. Note the -Werror above. The warning is promoted to an error, so it breaks the build. This issue landed on my desk because "allmodconfig" on arm doesn't compile. allmodconfig enables CONFIG_WERROR as well as CONFIG_KASAN_STACK. It's a configuration used by build bots to find compiler issues in drivers that are disabled by most folks. It does seem problematic that the compiler is told to error out if the stack frame becomes too large, yet happily inlines so many functions that the limit is exceeded. As said, disabling CONFIG_KASAN_STACK makes the issue disappear.
