* opts.sh: Quote '+' in regex.
authorNeil Booth <neil@daikokuya.co.uk>
Sun, 15 Jun 2003 19:21:48 +0000 (19:21 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 15 Jun 2003 19:21:48 +0000 (19:21 +0000)
From-SVN: r67983

gcc/ChangeLog
gcc/opts.sh

index 187c118918e72bdbce757f2aea38465cf37a89d1..564d2a7730487fd99bfabf4ee93a4d1d4cf991d0 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
+
+       * opts.sh: Quote '+' in regex.
+
 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
 
        * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
index 0816931c4cbb79c49d1acd9df91b0f17a146e082..84f2c62b079a4a223f071a8bf98b9be1751f3f59 100644 (file)
@@ -49,7 +49,7 @@ ${AWK} '
        result = "0"
        for (j = 0; j < n_langs; j++) {
            regex = " " langs[j] " "
-           gsub ( "+", "\\+", regex )
+           gsub ( "\+", "\\+", regex )
            if (flags ~ regex)
                result = result " | " macros[j]
        }