Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the patch to libstm32 to remove the instructions generated for …
…asserts even when debug is off
- Loading branch information
1 parent
9a0ab21
commit cf5e34b
Showing
4 changed files
with
85 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
74 changes: 74 additions & 0 deletions
74
linux/linux32/arm-none-eabi-gcc-linaro/patches/patch-gcc-config-arm-t-arm-elf.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- gcc/config/arm/t-arm-elf.orig 2011-02-03 10:41:08.000000000 +1100 | ||
+++ gcc/config/arm/t-arm-elf 2011-02-03 10:44:22.000000000 +1100 | ||
@@ -31,10 +31,55 @@ | ||
_arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \ | ||
_clzsi2 _clzdi2 | ||
|
||
-MULTILIB_OPTIONS = marm/mthumb | ||
-MULTILIB_DIRNAMES = arm thumb | ||
-MULTILIB_EXCEPTIONS = | ||
+# We build 4 multilibs: | ||
+# ./ (default) | ||
+# thumb/ -mthumb | ||
+# thumb2/ -mthumb -march=armv7 | ||
+# armv4t/ -mthumb -march=armv4t | ||
+ | ||
+MULTILIB_OPTIONS = mthumb | ||
+MULTILIB_DIRNAMES = thumb | ||
+MULTILIB_EXCEPTIONS = | ||
MULTILIB_MATCHES = | ||
+MULTILIB_EXTRA_OPTS += msoft-float | ||
+ | ||
+MULTILIB_OPTIONS += march=armv7/march=armv4t | ||
+MULTILIB_DIRNAMES += v7 v4t | ||
+MULTILIB_EXCEPTIONS += march=armv7* | ||
+MULTILIB_MATCHES += march?armv7=march?armv7-a | ||
+MULTILIB_MATCHES += march?armv7=march?armv7-r | ||
+MULTILIB_MATCHES += march?armv7=march?armv7-m | ||
+MULTILIB_MATCHES += march?armv7=march?armv7e-m | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-a9 | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-a8 | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-a5 | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-r4 | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-r4f | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-m4 | ||
+MULTILIB_MATCHES += march?armv7=mcpu?cortex-m3 | ||
+ | ||
+MULTILIB_EXCEPTIONS += march=armv4t | ||
+MULTILIB_MATCHES += march?armv4t=mcpu?arm7tdmi-s | ||
+#MULTILIB_MATCHES += | ||
+ | ||
+# FIXME: We need a sane way of doing this. | ||
+# This isn't really a multilib, it's a hack to add an extra option | ||
+# to the v7-m multilib. | ||
+MULTILIB_OPTIONS += mfix-cortex-m3-ldrd | ||
+MULTILIB_DIRNAMES += broken_ldrd | ||
+ | ||
+MULTILIB_EXCEPTIONS += mfix-cortex-m3-ldrd | ||
+MULTILIB_EXCEPTIONS += mthumb/mfix-cortex-m3-ldrd | ||
+MULTILIB_EXCEPTIONS += *march=armv4t*mfix-cortex-m3-ldrd | ||
+ | ||
+MULTILIB_ALIASES += mthumb/march?armv7/mfix-cortex-m3-ldrd=mthumb/march?armv7 | ||
+ | ||
+# As of at least 4.2, gcc passes the wrong -L options if some multilibs are | ||
+# omitted from MULTILIB_OSDIRNAMES | ||
+MULTILIB_OSDIRNAMES = mthumb=!thumb | ||
+MULTILIB_OSDIRNAMES += mthumb/march.armv7/mfix-cortex-m3-ldrd=!thumb2 | ||
+MULTILIB_OSDIRNAMES += mthumb/march.armv4t=!armv4t | ||
+ | ||
|
||
#MULTILIB_OPTIONS += march=armv7 | ||
#MULTILIB_DIRNAMES += thumb2 | ||
@@ -49,9 +94,9 @@ | ||
# Not quite true. We can support hard-vfp calling in Thumb2, but how do we | ||
# express that here? Also, we really need architecture v5e or later | ||
# (mcrr etc). | ||
-MULTILIB_OPTIONS += mfloat-abi=hard | ||
-MULTILIB_DIRNAMES += fpu | ||
-MULTILIB_EXCEPTIONS += *mthumb/*mfloat-abi=hard* | ||
+#MULTILIB_OPTIONS += mfloat-abi=hard | ||
+#MULTILIB_DIRNAMES += fpu | ||
+#MULTILIB_EXCEPTIONS += *mthumb/*mfloat-abi=hard* | ||
|
||
# MULTILIB_OPTIONS += mcpu=ep9312 | ||
# MULTILIB_DIRNAMES += ep9312 |
11 changes: 11 additions & 0 deletions
11
linux/linux32/arm-none-eabi-gcc-linaro/patches/patch-src-Makefile.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/Makefile.orig 2011-01-15 11:26:41.000000000 +1100 | ||
+++ src/Makefile 2011-01-15 11:28:01.000000000 +1100 | ||
@@ -25,7 +25,7 @@ | ||
CC=${compiler_prefix}gcc | ||
AR=${compiler_prefix}ar | ||
AS=${compiler_prefix}as | ||
-CFLAGS=-I../include -fno-common -Os -g -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections | ||
+CFLAGS=-I../include -fno-common -Os -g -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -D'assert_param(_cond)={}' -Wall | ||
ARFLAGS=rcsv | ||
ASFLAGS=-ahls -mapcs-32 | ||
|