summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-22 13:40:09 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-22 13:40:09 -0500
commitffffb0121dbf54f491560c3539e6269e432517ae (patch)
tree9caffb197aa99032931098371da5314c89808dae /toolchain
parentec3f682d79a38b29ef51b7cdbc9fb9afbe2c9c63 (diff)
use thumb mode for cortex-m3 by default.
Fix error: r7 cannot be used in asm here by using -fomit-frame-pointer.
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 110ef9d16..ccf0b4b69 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -135,7 +135,7 @@ GCC_CONFOPTS+= --with-cpu=arm1176jzf-s
endif
ifeq ($(ADK_CPU_CORTEX_M3),y)
-GCC_CONFOPTS+= --with-cpu=cortex-m3
+GCC_CONFOPTS+= --with-cpu=cortex-m3 --with-mode=thumb
endif
ifeq ($(ADK_CPU_CORTEX_A9),y)
@@ -194,8 +194,8 @@ endif
$(SED) '/k prot/agcc_cv_libc_provides_ssp=yes' $(WRKBUILD)/gcc/configure
cd $(GCC_BUILD_DIR_MINIMAL); \
PATH='$(TARGET_PATH)' \
- CFLAGS="-O0 -g0" \
- CXXFLAGS="-O0 -g0" \
+ CFLAGS="-O0 -g0 -fomit-frame-pointer" \
+ CXXFLAGS="-O0 -g0 -fomit-frame-pointer" \
$(WRKBUILD)/configure \
${GCC_CONFOPTS} \
--enable-languages=c \
@@ -216,8 +216,8 @@ $(GCC_BUILD_DIR_INITIAL)/.configured:
mkdir -p $(GCC_BUILD_DIR_INITIAL)
cd $(GCC_BUILD_DIR_INITIAL); \
PATH='$(TARGET_PATH)' \
- CFLAGS="-O0 -g0" \
- CXXFLAGS="-O0 -g0" \
+ CFLAGS="-O0 -g0 -fomit-frame-pointer" \
+ CXXFLAGS="-O0 -g0 -fomit-frame-pointer" \
$(WRKBUILD)/configure \
${GCC_CONFOPTS} \
${GCC_FINAL_CONFOPTS} \