From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 418113857C62; Thu, 3 Mar 2022 14:48:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 418113857C62 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-7465] configure: enable plugin support for ld.mold X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 88c4d85e27e18bf991ab8728b73127a0385f2c27 X-Git-Newrev: e81cbab6195a4217703824d7e5733f118afab3bb Message-Id: <20220303144855.418113857C62@sourceware.org> Date: Thu, 3 Mar 2022 14:48:55 +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 14:48:55 -0000 https://gcc.gnu.org/g:e81cbab6195a4217703824d7e5733f118afab3bb commit r12-7465-ge81cbab6195a4217703824d7e5733f118afab3bb Author: Martin Liska Date: Thu Mar 3 15:47:19 2022 +0100 configure: enable plugin support for ld.mold gcc/ChangeLog: * configure.ac: Now ld.mold support LTO plugin API, use it. * configure: Regenerate. Diff: --- gcc/configure | 2 ++ gcc/configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gcc/configure b/gcc/configure index 22eb3451e3d..6f5fc20fcf3 100755 --- a/gcc/configure +++ b/gcc/configure @@ -26037,6 +26037,8 @@ if test -f liblto_plugin.la; then # 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 20da90901f8..3d85d33bc80 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4278,6 +4278,8 @@ changequote([,])dnl # 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