summaryrefslogtreecommitdiff
path: root/gcc/opt-functions.awk
diff options
context:
space:
mode:
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-30 07:22:28 +0000
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-30 07:22:28 +0000
commit65441c28b0617a1611b3225fa635deb4f149bb5f (patch)
treec3af7b6302d96f3f323c6e92b209e680e2030f62 /gcc/opt-functions.awk
parent1f697db5b7935306d1a2ea87f0388b4af3bf5b72 (diff)
downloadgcc-65441c28b0617a1611b3225fa635deb4f149bb5f.tar.gz
* opt-functions.awk (opt_args): Allow argument to be enclosed in
curly braces. * doc/options.texi (Option properties): Mention new quoting syntax. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150248 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opt-functions.awk')
-rw-r--r--gcc/opt-functions.awk8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk
index ae1e1cb38c6..98414dae9a9 100644
--- a/gcc/opt-functions.awk
+++ b/gcc/opt-functions.awk
@@ -41,7 +41,13 @@ function opt_args(name, flags)
if (flags !~ " " name "\\(")
return ""
sub(".* " name "\\(", "", flags)
- sub("\\).*", "", flags)
+ if (flags ~ "^{")
+ {
+ sub ("^{", "", flags)
+ sub("}\\).*", "", flags)
+ }
+ else
+ sub("\\).*", "", flags)
return flags
}