Replace -Os with -O2

-Os seems to optimize away the UART code. I'm not sure why, as all the
pointers are volatile.
This commit is contained in:
Graham Edgecombe 2017-12-29 17:18:36 +00:00
parent d73b443ecc
commit 3806106b1c

View file

@ -23,7 +23,7 @@ ASFLAGS = -march=rv32i -mabi=ilp32
LD = $(TARGET)-gcc
LDFLAGS = -march=rv32i -mabi=ilp32 -Wl,-Tprogmem.lds -ffreestanding -nostartfiles
CC = $(TARGET)-gcc
CFLAGS = -march=rv32i -mabi=ilp32 -Wall -Wextra -pedantic -DFREQ=$(FREQ_PLL)000000 -Os
CFLAGS = -march=rv32i -mabi=ilp32 -Wall -Wextra -pedantic -DFREQ=$(FREQ_PLL)000000 -O2
OBJCOPY = $(TARGET)-objcopy
.PHONY: all clean syntax time stat flash