Skip to content

Commit 1108243

Browse files
committed
shrink SAMD21 builds by a few hundred bytes
1 parent d289329 commit 1108243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/atmel-samd/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ else
116116
# -finline-limit=80 or so is similar to not having it on.
117117
# There is no simple default value, though.
118118
ifeq ($(SHRINK_BUILD), 1)
119-
CFLAGS += -finline-limit=45
119+
CFLAGS += -finline-limit=45 --param max-inline-insns-auto=110
120120
endif
121121

122122
# We used to do this but it seems to not reduce space any more, at least in gcc 11.
123123
# Leave it here, commented out, just for reference.
124-
# --param inline-unit-growth=15 --param max-inline-insns-auto=20
124+
# --param inline-unit-growth=15
125125

126126
ifdef CFLAGS_BOARD
127127
CFLAGS += $(CFLAGS_BOARD)

0 commit comments

Comments
 (0)