On Fri, Aug 11, 2023, at 16:14, Nathan Chancellor wrote: > On Fri, Aug 11, 2023 at 04:03:19PM +0200, Arnd Bergmann wrote: >> From: Arnd Bergmann <arnd@xxxxxxxx> >> >> clang ignores the -fno-inline-functions-called-once option, but warns >> when building with -Wignored-optimization-argument enabled: >> >> clang: error: optimization flag '-fno-inline-functions-called-once' is not supported [-Werror,-Wignored-optimization-argument] >> >> Move it back to using cc-option for this one. >> >> Fixes: 7d73c3e9c514 ("Makefile: remove stale cc-option checks") >> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> > > How can this even be hit with clang, as CONFIG_DEBUG_SECTION_MISMATCH > was changed to depend on GCC in the same commit? Good question, I have not noticed that part, but I'm pretty sure I keep hitting this issue. I'll drop it from my series to see if I can reproduce it. Maybe what happens is that this triggers when changing from gcc to clang in an output directory, the stake CONFIG_* symbols are still evaluated while parsing the initial Makefile but then cause problems. Arnd