diff --git a/makefiles/arch/avr8.inc.mk b/makefiles/arch/avr8.inc.mk index 44b7f53f68..f47a2e35a7 100644 --- a/makefiles/arch/avr8.inc.mk +++ b/makefiles/arch/avr8.inc.mk @@ -38,3 +38,8 @@ endif OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation OPTIONAL_CFLAGS_BLACKLIST += -gz + +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 +ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),) + CFLAGS += --param=min-pagesize=0 +endif