Patched the LUFA build system to work around a GCC code generation bug in newer toolchains when building for larger FLASH memory devices (thanks to demultiplexer)
This commit is contained in:
parent
0fd7b2cf09
commit
d0a147f5bb
3 changed files with 9 additions and 1 deletions
|
@ -199,6 +199,12 @@ ifeq ($(LINKER_RELAXATIONS), Y)
|
|||
BASE_CC_FLAGS += -mrelax
|
||||
endif
|
||||
|
||||
# This flag is required for bootloaders as GCC will emit invalid jump table
|
||||
# assembly code for devices with large amounts of flash; the jump table target
|
||||
# is extracted from FLASH without using the correct ELPM instruction, resulting
|
||||
# in a pseudo-random jump target.
|
||||
BASE_CC_FLAGS += -fno-jump-tables
|
||||
|
||||
# Additional language specific compiler flags
|
||||
BASE_C_FLAGS := -x c -O$(OPTIMIZATION) -std=$(C_STANDARD) -Wstrict-prototypes
|
||||
BASE_CPP_FLAGS := -x c++ -O$(OPTIMIZATION) -std=$(CPP_STANDARD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue