summaryrefslogtreecommitdiff
path: root/qemu-arm
diff options
context:
space:
mode:
authorDaniel Tralamazza <daniel@tralamazza.com>2016-07-08 15:46:01 +0200
committerDamien George <damien.p.george@gmail.com>2016-07-11 12:04:56 +0100
commit9626662819ebd677106ba2655c4370912bef8588 (patch)
tree4e2765a746334353b8b26abe2d148b30bafc789f /qemu-arm
parent7711d87563f5ffe508eaea558299946469153928 (diff)
qemu-arm: Enable gcc LTO option for nlrthumb.c
LTO can't "see" inside naked functions, but we can mark `nlr_push_tail` as used.
Diffstat (limited to 'qemu-arm')
-rw-r--r--qemu-arm/Makefile3
1 files changed, 0 insertions, 3 deletions
diff --git a/qemu-arm/Makefile b/qemu-arm/Makefile
index d09282a1e..31ba6baa2 100644
--- a/qemu-arm/Makefile
+++ b/qemu-arm/Makefile
@@ -53,9 +53,6 @@ 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