summaryrefslogtreecommitdiff
path: root/gcc/opts.sh
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-15 15:28:24 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-15 15:28:24 +0000
commitc9580f22f546c2fe204e1ca13a01ee76480033cf (patch)
treed73c31f6517d11a4b4895b54cdee3c111f7e2587 /gcc/opts.sh
parent56f6054e8121a0f60733791855ff2c4b2e18e19a (diff)
downloadgcc-c9580f22f546c2fe204e1ca13a01ee76480033cf.tar.gz
* opts.sh: Quote '+' in regex.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67978 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.sh')
-rw-r--r--gcc/opts.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opts.sh b/gcc/opts.sh
index afa3221a8cc..0816931c4cb 100644
--- a/gcc/opts.sh
+++ b/gcc/opts.sh
@@ -48,7 +48,9 @@ ${AWK} '
flags = " " flags " "
result = "0"
for (j = 0; j < n_langs; j++) {
- if (flags ~ " " langs[j] " ")
+ regex = " " langs[j] " "
+ gsub ( "+", "\\+", regex )
+ if (flags ~ regex)
result = result " | " macros[j]
}
if (flags ~ " Common ") result = result " | CL_COMMON"