genmultilib.awk: Use gsub instead of gensub.

* config/avr/genmultilib.awk: Use gsub instead of gensub.

From-SVN: r248357
This commit is contained in:
Georg-Johann Lay 2017-05-23 07:51:26 +00:00 committed by Georg-Johann Lay
parent 5012c56f1b
commit bdf58f6bf4
2 changed files with 5 additions and 1 deletions

View 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

View 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
}