From 3ec764754d944318dc20c0b4577ef50b22d329d0 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 15 Jun 2003 15:28:24 +0000 Subject: [PATCH] * opts.sh: Quote '+' in regex. From-SVN: r67978 --- gcc/ChangeLog | 4 ++++ gcc/opts.sh | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbdc371caf6..3b0e24a66fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-06-15 Neil Booth + + * opts.sh: Quote '+' in regex. + 2003-06-15 Neil Booth * c-opts.c (lang_flags): Update for new spelling of flags. 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" -- 2.30.2