diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-12-12 23:01:41 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-12-12 23:01:41 +0100 |
commit | 27ec22668ffe96569b1860008e398d29f08ebd6c (patch) | |
tree | 690a6fdd688929bedf87319ad29bae613db92230 /gcc | |
parent | 573aa7d4b7c1249c16c12c8483ab8b9830848b82 (diff) | |
download | gcc-27ec22668ffe96569b1860008e398d29f08ebd6c.zip gcc-27ec22668ffe96569b1860008e398d29f08ebd6c.tar.gz gcc-27ec22668ffe96569b1860008e398d29f08ebd6c.tar.bz2 |
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')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/opt-functions.awk | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efc8bdd..50a9cf7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk index 7cf5025..43e223c 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) |