[arm] Fix warning in parsecpu.awk

Message ID 556c53d9-b01e-0586-8148-f9475af03903@arm.com
State New
Headers show

Commit Message

Richard Earnshaw (lists) July 6, 2017, 10:02 a.m.
In awk, single quotes within a quoted string do not need escaping.  The
existing code causes awk to grumble in the build logs.

	* config/arm/parsecpu.awk (gen_comm_data): Do not escape single
	quotes in quoted strings.

Committed.

R.

Patch hide | download patch | download mbox

diff --git a/gcc/config/arm/parsecpu.awk b/gcc/config/arm/parsecpu.awk
index d096bca..9d01e2c 100644
--- a/gcc/config/arm/parsecpu.awk
+++ b/gcc/config/arm/parsecpu.awk
@@ -301,7 +301,7 @@  function gen_comm_data () {
 	    arch_base[archs[n]] ","
 	# profile letter code, or zero if none.
 	if (archs[n] in arch_prof) {
-	    print "    \'" arch_prof[archs[n]] "\',"
+	    print "    '" arch_prof[archs[n]] "',"
 	} else {
 	    print "    0,"
 	}