Added a couple of extra compiler options better for use with the latest Yagarto release.

This commit is contained in:
Richard Barry 2009-09-28 18:05:54 +00:00
parent d7ca9be54d
commit 07990a8c0c

View file

@ -45,10 +45,6 @@
# licensing and training services. # licensing and training services.
#*/ #*/
# Changes from V2.4.2
#
# + Replaced source/portable/gcc/arm7/portheap.c with source/portable/memmang/heap_2.c.
CC=arm-elf-gcc CC=arm-elf-gcc
OBJCOPY=arm-elf-objcopy OBJCOPY=arm-elf-objcopy
ARCH=arm-elf-ar ARCH=arm-elf-ar
@ -61,7 +57,7 @@ WARNINGS=-Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align
# #
CFLAGS=$(WARNINGS) -D $(RUN_MODE) -D GCC_ARM7 -I. -I../../Source/include \ CFLAGS=$(WARNINGS) -D $(RUN_MODE) -D GCC_ARM7 -I. -I../../Source/include \
-I../Common/include $(DEBUG) -mcpu=arm7tdmi -T$(LDSCRIPT) \ -I../Common/include $(DEBUG) -mcpu=arm7tdmi -T$(LDSCRIPT) \
$(OPTIM) -fomit-frame-pointer -fno-strict-aliasing $(OPTIM) -fomit-frame-pointer -fno-strict-aliasing -fno-dwarf2-cfi-asm
ifeq ($(USE_THUMB_MODE),YES) ifeq ($(USE_THUMB_MODE),YES)
CFLAGS += -mthumb-interwork -D THUMB_INTERWORK CFLAGS += -mthumb-interwork -D THUMB_INTERWORK