summaryrefslogtreecommitdiff
path: root/gcc/opt-functions.awk
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-12-12 23:01:41 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-12-12 23:01:41 +0100
commit27ec22668ffe96569b1860008e398d29f08ebd6c (patch)
tree690a6fdd688929bedf87319ad29bae613db92230 /gcc/opt-functions.awk
parent573aa7d4b7c1249c16c12c8483ab8b9830848b82 (diff)
re PR other/78766 (GCC Awk scripts use the non-POSIX /^{/ regex)
PR other/78766 * opt-functions.awk (opt_args): Use [{] instead of { in regexps. Formatting fix. From-SVN: r243583
Diffstat (limited to 'gcc/opt-functions.awk')
-rw-r--r--gcc/opt-functions.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk
index 7cf50256558..43e223c3cc7 100644
--- a/gcc/opt-functions.awk
+++ b/gcc/opt-functions.awk
@@ -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)