diff options
author | Joel Challis <git@zvecr.com> | 2022-05-18 11:06:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 11:06:55 +0100 |
commit | 6503987c84994b2c6b5229db8b91c14d8bd11e41 (patch) | |
tree | 13853743ef22f0aada5f30eec97ce12eeffe22ba /platforms/avr | |
parent | 40e33d03a89575e30d94851cbc34fbdbf6a069b6 (diff) |
Workaround for recent -Werror=array-bounds AVR issues (#17136)
Diffstat (limited to 'platforms/avr')
-rw-r--r-- | platforms/avr/platform.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platforms/avr/platform.mk b/platforms/avr/platform.mk index 0374e2e058..978199b385 100644 --- a/platforms/avr/platform.mk +++ b/platforms/avr/platform.mk @@ -12,6 +12,11 @@ HEX = $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock -R .signature EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) BIN = +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 +ifneq ($(findstring 12.,$(shell avr-gcc --version 2>/dev/null)),) +COMPILEFLAGS += --param=min-pagesize=0 +endif + COMPILEFLAGS += -funsigned-char COMPILEFLAGS += -funsigned-bitfields COMPILEFLAGS += -ffunction-sections |