aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-06-15 15:28:24 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-06-15 15:28:24 +0000
commit3ec764754d944318dc20c0b4577ef50b22d329d0 (patch)
treed73c31f6517d11a4b4895b54cdee3c111f7e2587
parent705de64c0b5ee121a2ca81d802e7d63369eef137 (diff)
downloadgcc-3ec764754d944318dc20c0b4577ef50b22d329d0.zip
gcc-3ec764754d944318dc20c0b4577ef50b22d329d0.tar.gz
gcc-3ec764754d944318dc20c0b4577ef50b22d329d0.tar.bz2
* opts.sh: Quote '+' in regex.
From-SVN: r67978
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/opts.sh4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dbdc371..3b0e24a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2003-06-15 Neil Booth <neil@daikokuya.co.uk>
+ * opts.sh: Quote '+' in regex.
+
+2003-06-15 Neil Booth <neil@daikokuya.co.uk>
+
* c-opts.c (lang_flags): Update for new spelling of flags.
(write_langs): Similarly.
* c.opt: Specify languages.
diff --git a/gcc/opts.sh b/gcc/opts.sh
index afa3221..0816931 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"