On Mon, Oct 25, 2021 at 07:54:45AM +0000, Ryo Shimizu wrote: > Module Name: src > Committed By: ryo > Date: Mon Oct 25 07:54:44 UTC 2021 > > Modified Files: > src/share/mk: bsd.README bsd.lib.mk > src/sys/conf: Makefile.kern.inc > src/sys/lib/libkern: Makefile.libkern > > Log Message: > In some arch, _mcount() would be called recursively when built with COPTS=-O0. > > Normally, functions called from mcount.c are expected to be expanded inline, > so _mcount() will never be called recursively. But when build with COPTS=-O0, > `static inline' functions aren't inlined, and _mcount() will be called > recursively.
So why not fix that by actually using always_inline (i.e. __always_inline)? Joerg