genmultilib.awk: Use gsub instead of gensub.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 23 May 2017 07:51:26 +0000 (07:51 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 23 May 2017 07:51:26 +0000 (07:51 +0000)
* config/avr/genmultilib.awk: Use gsub instead of gensub.

From-SVN: r248357

gcc/ChangeLog
gcc/config/avr/genmultilib.awk

index 6824450..4a32c59 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/genmultilib.awk: Use gsub instead of gensub.
+
 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/80718
index ff93c1b..2451087 100644 (file)
@@ -123,7 +123,7 @@ BEGIN {
        have[opts] = 1
        # Some special handling for the default mmcu: Remove a
        # leading "mmcu=avr2/" in order not to confuse genmultilib.
-       opts = gensub (/mmcu=avr2\//, "", 1, opts)
+       gsub (/^mmcu=avr2\//, "", opts)
        if (opts != "mmcu=avr2")
            m_required = m_required " \\\n\t" opts
     }