common.mak: -Os instead of -O3, smaller bios (<32k)

This commit is contained in:
Robert Jordens 2013-11-10 10:50:41 +01:00 committed by Sebastien Bourdeauducq
parent 05944cf909
commit 4fc301ceba
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ endif
# Toolchain options # Toolchain options
# #
INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common
COMMONFLAGS = -O3 -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled -msign-extend-enabled \ COMMONFLAGS = -Os -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled -msign-extend-enabled \
-Wall -fno-builtin -nostdinc -DGIT_ID=$(GIT_ID) $(INCLUDES) -Wall -fno-builtin -nostdinc -DGIT_ID=$(GIT_ID) $(INCLUDES)
CFLAGS = $(COMMONFLAGS) -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes CFLAGS = $(COMMONFLAGS) -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
CXXFLAGS = $(COMMONFLAGS) -fno-exceptions -ffreestanding CXXFLAGS = $(COMMONFLAGS) -fno-exceptions -ffreestanding