From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id 84E8C3858D35 for ; Tue, 23 Nov 2021 00:29:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 84E8C3858D35 Received: by mail-pj1-x102b.google.com with SMTP id w33-20020a17090a6ba400b001a722a06212so945849pjj.0 for ; Mon, 22 Nov 2021 16:29:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=NF2mmRreeVC6r9n4Ds77uqQ7K3UBCfpRrr3zDZCvLZQ=; b=ZeCKSNHPuZ1jVDT0uJR36qjNVnzv9IpprAqV9pjoyWQ8sLiMZHcSgzvdzSPmE19fRK adNXnJa3gvpIwURZUfzyTWrYBFcJBAlICYM6lw0LzABGRD5iSoIJ4ZsJXFGDZQd3bnsq f1FwDVHkOIAYkSCAJQ/BRb2dwIMBS8knOsVFHfkYfKTI4RW/iygotCsE11Hv0ubWBrDx M7+V029hIiWs6GwvuxHUCdhSkMDY12M+z3ysdiy0ev2yU8yX4X3uzrSjsDRIRCfrG8Bd c1qleg8MLRJPkObe8SfnlA/+Sou4gM+sWkrgs/g+6Fdr0GtcV8D6jASeKAJODBEmHpve 8t5w== X-Gm-Message-State: AOAM5332TeI/N5F5tR7e9k1PsenEqnE7ieDzvSd8xm4BBVZShC9njQC4 Ei/oPSEy/pEaeHuLSb6s7sSCDbZi5lg= X-Google-Smtp-Source: ABdhPJyT4mVs9yxgd/nkPaztBKkZau0ggRdyeXsDOe5A4arb/v8jd2hHXojEVXHPUGY/0axW+TEpIQ== X-Received: by 2002:a17:902:c94a:b0:141:fdaa:59ac with SMTP id i10-20020a170902c94a00b00141fdaa59acmr1613515pla.37.1637627346486; Mon, 22 Nov 2021 16:29:06 -0800 (PST) Received: from [172.31.0.175] (c-98-202-48-222.hsd1.ut.comcast.net. [98.202.48.222]) by smtp.gmail.com with ESMTPSA id f22sm10297209pfj.49.2021.11.22.16.29.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Nov 2021 16:29:06 -0800 (PST) Message-ID: Date: Mon, 22 Nov 2021 17:29:04 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH 1/2] Sync with binutils: GCC: Pass --plugin to AR and RANLIB Content-Language: en-US To: "H.J. Lu" , gcc-patches@gcc.gnu.org References: <20211113163353.5374-1-hjl.tools@gmail.com> <20211113163353.5374-2-hjl.tools@gmail.com> From: Jeff Law In-Reply-To: <20211113163353.5374-2-hjl.tools@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 00:29:08 -0000 On 11/13/2021 9:33 AM, H.J. Lu via Gcc-patches wrote: > Sync with binutils for building binutils with LTO: > > From 50ad1254d5030d0804cbf89c758359ae202e8d55 Mon Sep 17 00:00:00 2001 > From: "H.J. Lu" > Date: Sat, 9 Jan 2021 06:43:11 -0800 > Subject: [PATCH] GCC: Pass --plugin to AR and RANLIB > > Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO > build. > > * Makefile.tpl (AR): Add @AR_PLUGIN_OPTION@ > (RANLIB): Add @RANLIB_PLUGIN_OPTION@. > * configure.ac: Include config/gcc-plugin.m4. > AC_SUBST AR_PLUGIN_OPTION and RANLIB_PLUGIN_OPTION. > * libtool.m4 (_LT_CMD_OLD_ARCHIVE): Pass --plugin to AR and > RANLIB if possible. > * Makefile.in: Regenerated. > * configure: Likewise. > > config/ > > * gcc-plugin.m4 (GCC_PLUGIN_OPTION): New. > > libiberty/ > > * Makefile.in (AR): Add @AR_PLUGIN_OPTION@ > (RANLIB): Add @RANLIB_PLUGIN_OPTION@. > (configure_deps): Depend on ../config/gcc-plugin.m4. > * configure.ac: AC_SUBST AR_PLUGIN_OPTION and > RANLIB_PLUGIN_OPTION. > * aclocal.m4: Regenerated. > * configure: Likewise. > > zlib/ > > * configure: Regenerated. I thought the plugins were automatically loaded if they're in the right place in the filesystem.  Wouldn't that make this patch unnecessary?  Am I missing something? jeff