From: Georg-Johann Lay Date: Tue, 23 May 2017 07:51:26 +0000 (+0000) Subject: genmultilib.awk: Use gsub instead of gensub. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdf58f6bf4ef9b7adb07f4107cda30d154fea71d;p=gcc.git genmultilib.awk: Use gsub instead of gensub. * config/avr/genmultilib.awk: Use gsub instead of gensub. From-SVN: r248357 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6824450961b..4a32c59a869 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-05-23 Georg-Johann Lay + + * config/avr/genmultilib.awk: Use gsub instead of gensub. + 2017-05-22 Michael Meissner PR target/80718 diff --git a/gcc/config/avr/genmultilib.awk b/gcc/config/avr/genmultilib.awk index ff93c1b7638..2451087347f 100644 --- a/gcc/config/avr/genmultilib.awk +++ b/gcc/config/avr/genmultilib.awk @@ -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 }