aboutsummaryrefslogtreecommitdiff
path: root/8.1.0
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-05-04 23:03:10 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2018-05-04 23:03:10 +0000
commit988e20e28ba9a451184f7bbe470fd5d3f77de775 (patch)
treeeedc5fcb58e77eac6a38d9a240f1da7b94ebf566 /8.1.0
parentUpdate patches for gcc 6.4 and 7.3 in the patchset (diff)
downloadgcc-patches-988e20e28ba9a451184f7bbe470fd5d3f77de775.tar.gz
gcc-patches-988e20e28ba9a451184f7bbe470fd5d3f77de775.tar.bz2
gcc-patches-988e20e28ba9a451184f7bbe470fd5d3f77de775.zip
fix --with-arch= arm validation
toolchain.eclass relies on it to pass (or not to pass0 correct --with-arch=. In this case broken target was arm-none-eabi Bug: https://gcc.gnu.org/PR85658
Diffstat (limited to '8.1.0')
-rw-r--r--8.1.0/gentoo/93_all_arm-arch.patch16
-rw-r--r--8.1.0/gentoo/README.history2
2 files changed, 18 insertions, 0 deletions
diff --git a/8.1.0/gentoo/93_all_arm-arch.patch b/8.1.0/gentoo/93_all_arm-arch.patch
new file mode 100644
index 0000000..4140d51
--- /dev/null
+++ b/8.1.0/gentoo/93_all_arm-arch.patch
@@ -0,0 +1,16 @@
+Fix -march= flag autodetection.
+
+Bug: https://gcc.gnu.org/PR85658
+diff --git a/gcc/config/arm/parsecpu.awk b/gcc/config/arm/parsecpu.awk
+index 56c762b3b..1135f735b 100644
+--- a/gcc/config/arm/parsecpu.awk
++++ b/gcc/config/arm/parsecpu.awk
+@@ -485,7 +485,7 @@ function check_fpu (name) {
+ function check_arch (name) {
+ exts = split (name, extensions, "+")
+
+- if (! extensions[1] in arch_isa) {
++ if (! (extensions[1] in arch_isa)) {
+ return "error"
+ }
+
diff --git a/8.1.0/gentoo/README.history b/8.1.0/gentoo/README.history
index 0577349..ab7a48c 100644
--- a/8.1.0/gentoo/README.history
+++ b/8.1.0/gentoo/README.history
@@ -1,3 +1,5 @@
+1.2 05 May 2018
+ + 93_all_arm-arch.patch
1.1 03 May 2018
U 13_all_default-ssp-fix.patch
+ 35_all_i386_libgcc_note.GNU-stack.patch