diff mbox series

arm - minor cleanups for CPU alias support

Message ID 3f853ffc-f7e3-68a6-3765-55447b72ce53@arm.com
State New
Headers show
Series arm - minor cleanups for CPU alias support | expand

Commit Message

Richard Earnshaw (lists) Nov. 9, 2018, 5:30 p.m. UTC
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 mbox series

Patch

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
 }