altos: ARM -O0 flag appears to generate buggy code
authorKeith Packard <keithp@keithp.com>
Mon, 9 Apr 2012 07:10:01 +0000 (00:10 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 9 Apr 2012 07:10:01 +0000 (00:10 -0700)
Use -Os always, which is annoying...

Signed-off-by: Keith Packard <keithp@keithp.com>
src/megametrum-v0.1/Makefile

index 71f4adf76b3568c098e638c10266c11543e50bfb..297d136a54e2de483ddd36c9067babbdb1a35faf 100644 (file)
@@ -8,6 +8,7 @@ include ../stm/Makefile.defs
 INC = \
        ao.h \
        ao_arch.h \
+       ao_arch_funcs.h \
        ao_pins.h \
        altitude.h \
        ao_kalman.h \
@@ -41,7 +42,7 @@ PRODUCT=MegaMetrum-v0.1
 PRODUCT_DEF=-DMEGAMETRUM
 IDPRODUCT=0x000a
 
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -O0 -g
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
 
 PROG=megametrum-v0.1-$(VERSION).elf