Skip to content
Snippets Groups Projects
Commit b9e3fde2 authored by Damien George's avatar Damien George
Browse files

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.
parent d862a7b8
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment