diff options
author | 2018-05-04 23:03:10 +0000 | |
---|---|---|
committer | 2018-05-04 23:03:10 +0000 | |
commit | 50d5244358e9bf4c697bae6bdd8a8674a59246bc (patch) | |
tree | 95a02ba1af1b617403144d10cec53914e570413c | |
parent | Update patches for gcc 6.4 and 7.3 in the patchset (diff) | |
download | gentoo-50d5244358e9bf4c697bae6bdd8a8674a59246bc.tar.gz gentoo-50d5244358e9bf4c697bae6bdd8a8674a59246bc.tar.bz2 gentoo-50d5244358e9bf4c697bae6bdd8a8674a59246bc.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
-rw-r--r-- | src/patchsets/gcc/8.1.0/gentoo/93_all_arm-arch.patch | 16 | ||||
-rw-r--r-- | src/patchsets/gcc/8.1.0/gentoo/README.history | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/patchsets/gcc/8.1.0/gentoo/93_all_arm-arch.patch b/src/patchsets/gcc/8.1.0/gentoo/93_all_arm-arch.patch new file mode 100644 index 0000000000..4140d5175c --- /dev/null +++ b/src/patchsets/gcc/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/src/patchsets/gcc/8.1.0/gentoo/README.history b/src/patchsets/gcc/8.1.0/gentoo/README.history index 0577349dd1..ab7a48cd5a 100644 --- a/src/patchsets/gcc/8.1.0/gentoo/README.history +++ b/src/patchsets/gcc/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 |