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
This commit is contained in:
parent
573aa7d4b7
commit
27ec22668f
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user