All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cortex-m3: adjusted target cflags
@ 2011-02-07 15:53 Enrico Scholz
  2011-02-07 15:53 ` [PATCH] gcc-4.5: added thumb2 build patch Enrico Scholz
  2011-02-07 19:33 ` [PATCH] cortex-m3: adjusted target cflags Khem Raj
  0 siblings, 2 replies; 13+ messages in thread
From: Enrico Scholz @ 2011-02-07 15:53 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Enrico Scholz

Explicit '-mthumb' is required because Cortex-M3 does not support ARM
instructions and actual flags cause gcc to fail with 'error: target CPU
does not support ARM mode'.

The '-mcpu=cortex-m3' is shorter than '-march=armv7-m -mtune=cortex-m3'
and enables workarounds like '-mfix-cortex-m3-ldrd'.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 conf/machine/include/tune-cortexm3.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/include/tune-cortexm3.inc b/conf/machine/include/tune-cortexm3.inc
index 6da9aee..a66a33c 100644
--- a/conf/machine/include/tune-cortexm3.inc
+++ b/conf/machine/include/tune-cortexm3.inc
@@ -1,4 +1,4 @@
 # valid options for -march: `armv7', `armv7-m'
-TARGET_CC_ARCH = "-march=armv7-m -mtune=cortex-m3 -mfpu=vfp -mfloat-abi=softfp"
+TARGET_CC_ARCH = "-mthumb -mcpu=cortex-m3 -mfpu=vfp -mfloat-abi=softfp"
 FEED_ARCH = "armv7"
 BASE_PACKAGE_ARCH = "armv7"
-- 
1.7.4




^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-02-07 22:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-07 15:53 [PATCH] cortex-m3: adjusted target cflags Enrico Scholz
2011-02-07 15:53 ` [PATCH] gcc-4.5: added thumb2 build patch Enrico Scholz
2011-02-07 16:35   ` Koen Kooi
2011-02-07 17:25   ` [PATCH, v2] " Enrico Scholz
2011-02-07 18:30     ` Khem Raj
2011-02-07 19:33 ` [PATCH] cortex-m3: adjusted target cflags Khem Raj
2011-02-07 19:39   ` Mark Hatle
2011-02-07 20:19     ` Khem Raj
2011-02-07 20:42       ` Mark Hatle
2011-02-07 20:59   ` Enrico Scholz
2011-02-07 21:35     ` Khem Raj
2011-02-07 22:27       ` Enrico Scholz
2011-02-07 22:35         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.