summaryrefslogtreecommitdiff
path: root/util/crossgcc/patches/gcc-8.1.0_armv6s-m.patch
diff options
context:
space:
mode:
Diffstat (limited to 'util/crossgcc/patches/gcc-8.1.0_armv6s-m.patch')
-rw-r--r--util/crossgcc/patches/gcc-8.1.0_armv6s-m.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/util/crossgcc/patches/gcc-8.1.0_armv6s-m.patch b/util/crossgcc/patches/gcc-8.1.0_armv6s-m.patch
new file mode 100644
index 0000000000..d56ff4caa8
--- /dev/null
+++ b/util/crossgcc/patches/gcc-8.1.0_armv6s-m.patch
@@ -0,0 +1,64 @@
+Taken from https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=260158
+--- gcc-8-branch/gcc/config/arm/arm-cpus.in 2018/05/11 09:28:10 260157
++++ gcc-8-branch/gcc/config/arm/arm-cpus.in 2018/05/11 09:30:49 260158
+@@ -446,6 +446,8 @@
+ isa ARMv6m
+ end arch armv6-m
+
++# This is now equivalent to armv6-m, but we keep it because some
++# versions of GAS still distinguish between the two.
+ begin arch armv6s-m
+ tune for cortex-m1
+ base 6M
+@@ -1168,21 +1170,21 @@
+ begin cpu cortex-m1
+ cname cortexm1
+ tune flags LDSCHED
+- architecture armv6-m
++ architecture armv6s-m
+ costs v6m
+ end cpu cortex-m1
+
+ begin cpu cortex-m0
+ cname cortexm0
+ tune flags LDSCHED
+- architecture armv6-m
++ architecture armv6s-m
+ costs v6m
+ end cpu cortex-m0
+
+ begin cpu cortex-m0plus
+ cname cortexm0plus
+ tune flags LDSCHED
+- architecture armv6-m
++ architecture armv6s-m
+ costs v6m
+ end cpu cortex-m0plus
+
+@@ -1192,7 +1194,7 @@
+ cname cortexm1smallmultiply
+ tune for cortex-m1
+ tune flags LDSCHED SMALLMUL
+- architecture armv6-m
++ architecture armv6s-m
+ costs v6m
+ end cpu cortex-m1.small-multiply
+
+@@ -1200,7 +1202,7 @@
+ cname cortexm0smallmultiply
+ tune for cortex-m0
+ tune flags LDSCHED SMALLMUL
+- architecture armv6-m
++ architecture armv6s-m
+ costs v6m
+ end cpu cortex-m0.small-multiply
+
+@@ -1208,7 +1210,7 @@
+ cname cortexm0plussmallmultiply
+ tune for cortex-m0plus
+ tune flags LDSCHED SMALLMUL
+- architecture armv6-m
++ architecture armv6s-m
+ costs v6m
+ end cpu cortex-m0plus.small-multiply
+