git: bsd.kern.mk: Remove -finline-limit and related compiler parameters
Aaron LI
aly at crater.dragonflybsd.org
Sat Jun 20 00:14:56 PDT 2026
commit 80c6dc359823631a88287df3c2ac3677d6d49eb0
Author: Aaron LI <aly at aaronly.me>
Date: Sat Jun 20 14:14:14 2026 +0800
bsd.kern.mk: Remove -finline-limit and related compiler parameters
These compiler flags/parameter were inherited from FreeBSD. They
basically meant to ALWAYS inline the functions mark with the 'inline'
keyword. Since modern GCC provides with the 'always_inline' attribute,
it's better to use '__always_inline' annotation for those functions that
must be inlined. As a result, remove the '-finline-limit' and related
parameters to achieve better inlining results; e.g., it avoids
unnecessary over-inlining.
Summary of changes:
sys/conf/bsd.kern.mk | 8 +-------
sys/platform/pc64/conf/kern.mk | 2 --
sys/platform/vkernel64/conf/kern.mk | 2 --
3 files changed, 1 insertion(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/80c6dc359823631a88287df3c2ac3677d6d49eb0
--
DragonFly BSD source repository
More information about the Commits
mailing list