Commit 27ec2266 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 573aa7d4
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> 2016-12-12 Martin Sebor <msebor@redhat.com>
PR middle-end/78622 PR middle-end/78622
...@@ -61,10 +61,10 @@ function opt_args(name, flags) ...@@ -61,10 +61,10 @@ function opt_args(name, flags)
if (flags !~ " " name "\\(") if (flags !~ " " name "\\(")
return "" return ""
sub(".* " name "\\(", "", flags) sub(".* " name "\\(", "", flags)
if (flags ~ "^{") if (flags ~ "^[{]")
{ {
sub ("^{", "", flags) sub ("^[{]", "", flags)
sub("}\\).*", "", flags) sub ("}\\).*", "", flags)
} }
else else
sub("\\).*", "", flags) sub("\\).*", "", flags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment