[Core] Squeeze AVR some more with `-mrelax` and `-mcall-prologues` (#16269)

This commit is contained in:
Stefan Kerkmann 2022-02-27 04:05:03 +01:00 committed by GitHub
parent cb8528c33c
commit 156f0561f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,13 @@ COMPILEFLAGS += -ffunction-sections
COMPILEFLAGS += -fdata-sections
COMPILEFLAGS += -fpack-struct
COMPILEFLAGS += -fshort-enums
COMPILEFLAGS += -mcall-prologues
# Linker relaxation is only possible if
# link time optimizations are not enabled.
ifeq ($(strip $(LTO_ENABLE)), no)
COMPILEFLAGS += -mrelax
endif
ASFLAGS += $(AVR_ASFLAGS)