[arm] Fix warning in parsecpu.awk
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 10 Jul 2017 09:39:12 +0000 (09:39 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 10 Jul 2017 09:39:12 +0000 (09:39 +0000)
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.

(really commit it this time)...

From-SVN: r250092

gcc/ChangeLog
gcc/config/arm/parsecpu.awk

index 8e71bc79359db92e5453f5ab9a3a7348f68892d4..2e9afed564adb9db90c97d3c561b5aa111b9935c 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-10  Richard Earnshaw  <rearnsha@arm.com>
+
+       * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
+       in quoted strings.
+
 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
 
        Move jump-tables out of .text again.
        * gcc/config/i386/i386.c (ix86_erase_embedded_rounding):
        Remove code for old rounding pattern.
 
-2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
-
-       * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
-       in quoted strings.
-
 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
 
        * config/arm/t-arm (GTM_H): Add arm-cpu.h.
index d096bca33b31cc6dcd2c22e3fd31592cb8ffb84c..9d01e2cf992c9643534a7621e59e78041f8a1f9f 100644 (file)
@@ -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,"
        }