re PR other/78766 (GCC Awk scripts use the non-POSIX /^{/ regex)
authorJakub Jelinek <jakub@redhat.com>
Mon, 12 Dec 2016 22:01:41 +0000 (23:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Dec 2016 22:01:41 +0000 (23:01 +0100)
PR other/78766
* opt-functions.awk (opt_args): Use [{] instead of { in regexps.
Formatting fix.

From-SVN: r243583

gcc/ChangeLog
gcc/opt-functions.awk

index efc8bdd5b850bf564656649044354b99dd8e21ca..50a9cf753769557347f1222a1ae4e997828fa688 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-12  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/78766
+       * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
+       Formatting fix.
+
 2016-12-12  Martin Sebor  <msebor@redhat.com>
 
        PR middle-end/78622
index 7cf50256558abccefa9ba72eb79f54f54dad1f94..43e223c3cc763f6d54d3467b9a8ac391d9cd3b39 100644 (file)
@@ -61,10 +61,10 @@ function opt_args(name, flags)
        if (flags !~ " " name "\\(")
                return ""
        sub(".* " name "\\(", "", flags)
-       if (flags ~ "^{")
+       if (flags ~ "^[{]")
        {
-               sub ("^{", "", flags)
-               sub("}\\).*", "", flags)
+               sub ("^[{]", "", flags)
+               sub ("}\\).*", "", flags)
        }
        else
                sub("\\).*", "", flags)