qemu-arm: Disable gcc LTO option for nlrthumb.c.

If LTO is enabled for nlrthumb.c then gcc optimises away the nlr_push_tail
function when in fact it is needed.  So disable this option for this file.
This commit is contained in:
Damien George 2016-06-28 12:30:26 +01:00
parent d862a7b811
commit b9e3fde21a
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ OBJ_TEST += $(addprefix $(BUILD)/, $(SRC_TEST_C:.c=.o))
OBJ_TEST += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
OBJ_TEST += $(BUILD)/tinytest.o
# we can't use LTO for nlrthumb.c because it contains inline assembler
$(PY_BUILD)/nlrthumb.o: CFLAGS += -fno-lto
all: run
run: $(BUILD)/firmware.elf