atmel-samd: get most constrained m0 builds to work again

By tweaking the optimizer flags, we can get back a few hundred bytes
and allow these builds to work with the gcc9 compiler.
This commit is contained in:
Jeff Epler 2019-11-21 09:57:20 -06:00
parent eb44b2bb26
commit 2e4a6b94e7
4 changed files with 11 additions and 0 deletions

View File

@ -122,7 +122,12 @@ else
ifdef CFLAGS_INLINE_LIMIT
CFLAGS += -finline-limit=$(CFLAGS_INLINE_LIMIT)
endif
CFLAGS += -flto -flto-partition=none
ifdef CFLAGS_BOARD
CFLAGS += $(CFLAGS_BOARD)
endif
endif
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT)

View File

@ -29,3 +29,5 @@ SUPEROPT_GC = 0
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DotStar
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IRRemote
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20

View File

@ -12,3 +12,5 @@ LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1
SUPEROPT_GC = 0
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20

View File

@ -12,3 +12,5 @@ LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1
SUPEROPT_GC = 0
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20