diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-15 15:28:24 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-15 15:28:24 +0000 |
commit | c9580f22f546c2fe204e1ca13a01ee76480033cf (patch) | |
tree | d73c31f6517d11a4b4895b54cdee3c111f7e2587 /gcc/opts.sh | |
parent | 56f6054e8121a0f60733791855ff2c4b2e18e19a (diff) | |
download | gcc-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.sh | 4 |
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" |