diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-06-28 12:30:26 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-06-28 12:30:26 +0100 |
| commit | b9e3fde21a1de61c69e283ab7d756297655a2496 (patch) | |
| tree | 2f18ce47d8a8ab1d4b6f097e72e2256ab7f688a6 | |
| parent | d862a7b811f095b3e67fb7dbf66d532a4498aa18 (diff) | |
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.
| -rw-r--r-- | qemu-arm/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-arm/Makefile b/qemu-arm/Makefile index 31ba6baa2..d09282a1e 100644 --- a/qemu-arm/Makefile +++ b/qemu-arm/Makefile @@ -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 |
