From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id 36A543857C42 for ; Thu, 13 Aug 2020 23:07:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 36A543857C42 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=segher@kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 07DN7RHm002394; Thu, 13 Aug 2020 18:07:27 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 07DN7R36002393; Thu, 13 Aug 2020 18:07:27 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 13 Aug 2020 18:07:27 -0500 From: Segher Boessenkool To: Paul E Murphy Cc: gcc-help@gcc.gnu.org Subject: Re: LTO Optimization with asm renames of intrinsic functions Message-ID: <20200813230727.GL6753@gate.crashing.org> References: <5d93203d-8f34-4f5e-8050-8a23396796b1@linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d93203d-8f34-4f5e-8050-8a23396796b1@linux.ibm.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, TXREP, T_SPF_HELO_PERMERROR, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2020 23:07:29 -0000 On Wed, Aug 12, 2020 at 05:26:35PM -0500, Paul E Murphy via Gcc-help wrote: > asm ("__bid_floatsidd = __GI___bid_floatsidd"); > This creative workaround has worked with lto disabled, but > when enabled, it is effectively ignored. Is there a more robust way > to bypass plt calls for intrinsic functions when using LTO? Do linker scripts work with LTO? You can do this in a linker script (which is neater than doing it in assembler, anyway :-) ) Segher