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.

From-SVN: r265978
This commit is contained in:
Richard Earnshaw 2018-11-09 17:28:57 +00:00 committed by Richard Earnshaw
parent 4c7bd36194
commit e82cb04297
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2018-11-09 Richard Earnshaw <rearnsha@arm.com>
* config/arm/parsecpu.awk (/alias/): Tighten invisible alias
matching criteria. Remove unused array initializer.
2018-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
Jinsong Ji <jji@us.ibm.com>

View File

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