loci: remove optimization pragma
For some reason this pragma is causing slow build times. Replacing it with a
-Os option on the GCC command line cuts the total build time in half without
affecting the size of the generated code.
diff --git a/c_gen/templates/_pragmas.c b/c_gen/templates/_pragmas.c
index 8494006..cbdc350 100644
--- a/c_gen/templates/_pragmas.c
+++ b/c_gen/templates/_pragmas.c
@@ -43,10 +43,6 @@
#define __GNUC_PREREQ(maj, min) 0
#endif
-#if __GNUC_PREREQ(4,4)
-#pragma GCC optimize ("s")
-#endif
-
#if __GNUC_PREREQ(4,6)
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
diff --git a/c_gen/templates/locitest/Makefile b/c_gen/templates/locitest/Makefile
index 966fe9b..70e57ca 100644
--- a/c_gen/templates/locitest/Makefile
+++ b/c_gen/templates/locitest/Makefile
@@ -4,7 +4,7 @@
LOCITEST_OBJS := $(LOCITEST_SRCS:.c=.o)
LOCI_OBJS := $(LOCI_SRCS:.c=.o)
-CFLAGS := -Wall -Werror -g
+CFLAGS := -Wall -Werror -g -Os
CFLAGS += -Iinc -I../loci/inc -I ../loci/src
all: locitest