[Bug bootstrap/85658] gcc-8.0.1 stopped validating --with-arch= flag

slyfox at inbox dot ru gcc-bugzilla@gcc.gnu.org
Fri May 4 22:57:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85658

--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Looks like the bug is in operator precedence in awk between '!' and  'in'.
This makes above tests to recover:

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"
     }


More information about the Gcc-bugs mailing list