This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
arm - minor cleanups for CPU alias support
- From: "Richard Earnshaw (lists)" <Richard dot Earnshaw at arm dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 9 Nov 2018 17:30:20 +0000
- Subject: arm - minor cleanups for CPU alias support
A couple of very minor issues with the new support for CPU
aliases.
* config/arm/parsecpu.awk (/alias/): Tighten invisible alias
matching criteria. Remove unused array initializer.
Committed.
diff --git a/gcc/config/arm/parsecpu.awk b/gcc/config/arm/parsecpu.awk
index ba2dee5fdcb..87411847ec6 100644
--- a/gcc/config/arm/parsecpu.awk
+++ b/gcc/config/arm/parsecpu.awk
@@ -684,7 +684,7 @@ BEGIN {
for (n = 2; n <= alias_count; n++) {
visible = "true"
alias = $n
- if (alias ~ /!.*/) {
+ if (alias ~ /^!.*/) {
visible = "false"
gsub(/^!/, "", alias)
}
@@ -700,7 +700,6 @@ BEGIN {
}
cpu_all_aliases[alias] = cpu_name
}
- cpu_has_alias[cpu_name] = 1
parse_ok = 1
}