From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 02B023857C4C; Thu, 3 Mar 2022 16:31:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02B023857C4C MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7466] configure: use linker plug-in by default for ld.mold X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: e81cbab6195a4217703824d7e5733f118afab3bb X-Git-Newrev: c083e654bd0f29a365ec957c4c0d4e713fb0b010 Message-Id: <20220303163138.02B023857C4C@sourceware.org> Date: Thu, 3 Mar 2022 16:31:38 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2022 16:31:38 -0000 https://gcc.gnu.org/g:c083e654bd0f29a365ec957c4c0d4e713fb0b010 commit r12-7466-gc083e654bd0f29a365ec957c4c0d4e713fb0b010 Author: Martin Liska Date: Thu Mar 3 17:28:45 2022 +0100 configure: use linker plug-in by default for ld.mold gcc/ChangeLog: * configure.ac: Use linker plug-in by default. * configure: Regenerate. Diff: --- gcc/configure | 4 ++-- gcc/configure.ac | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/configure b/gcc/configure index 6f5fc20fcf3..14b19c8fe0c 100755 --- a/gcc/configure +++ b/gcc/configure @@ -26034,11 +26034,11 @@ if test -f liblto_plugin.la; then # Require GNU ld or gold 2.21+ for plugin support by default. if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then gcc_cv_lto_plugin=2 + elif test "$ld_is_mold" = yes; then + gcc_cv_lto_plugin=2 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20. elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then gcc_cv_lto_plugin=1 - elif test "$ld_is_mold" = yes; then - gcc_cv_lto_plugin=1 fi fi diff --git a/gcc/configure.ac b/gcc/configure.ac index 3d85d33bc80..90cad309762 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4275,11 +4275,11 @@ changequote([,])dnl # Require GNU ld or gold 2.21+ for plugin support by default. if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then gcc_cv_lto_plugin=2 + elif test "$ld_is_mold" = yes; then + gcc_cv_lto_plugin=2 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20. elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then gcc_cv_lto_plugin=1 - elif test "$ld_is_mold" = yes; then - gcc_cv_lto_plugin=1 fi fi