From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: StrawberryTea Newsgroups: gmane.emacs.bugs Subject: bug#69689: 30.0.50; cannot native compile with -flto in native-comp-compiler-options Date: Sun, 17 Mar 2024 13:17:43 -0500 Message-ID: <87ttl4rad4.fsf@strawberrytea.xyz> References: <87frwyepsy.fsf@strawberrytea.xyz> <86o7bmwqn8.fsf@gnu.org> <87v85ugfh2.fsf@strawberrytea.xyz> <865xxsvqg4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24498"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.0; emacs 30.0.50 Cc: 69689@debbugs.gnu.org, Eli Zaretskii , Paul Eggert To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 17 20:11:03 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rlvuJ-00063G-E0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Mar 2024 20:11:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlvtu-0003FW-LD; Sun, 17 Mar 2024 15:10:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlvto-0003FG-Ts for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2024 15:10:25 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlvto-0003Kg-M3 for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2024 15:10:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlvuQ-0002gV-Aj for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2024 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: StrawberryTea Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Mar 2024 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69689 X-GNU-PR-Package: emacs Original-Received: via spool by 69689-submit@debbugs.gnu.org id=B69689.171070261610199 (code B ref 69689); Sun, 17 Mar 2024 19:11:02 +0000 Original-Received: (at 69689) by debbugs.gnu.org; 17 Mar 2024 19:10:16 +0000 Original-Received: from localhost ([127.0.0.1]:36346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlvtf-0002eM-7E for submit@debbugs.gnu.org; Sun, 17 Mar 2024 15:10:16 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlvSv-0001Md-50 for 69689@debbugs.gnu.org; Sun, 17 Mar 2024 14:42:38 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2F50B5C004D; Sun, 17 Mar 2024 14:17:45 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 17 Mar 2024 14:17:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1710699465; x=1710785865; bh=3WbUmrlY3oF3uzxdGYFYWWYV5vtESfpVJ/vouFwOiI0=; b= XWvPhXI6hGmGyDaMqoxNN1yf5JuJGN2l4D3sZBZrtJwgfm6RoEd86h3POIS+p58W Eu/2zQ7CfKt0jj8iFE6wWF2PhFz7AGHfGMa3qFf+axJHXI/70BeSxCWM7hQSN+ip dPiPjEmB6Fa9RuVQn7VARgHREy+XIRsDStM35vPk5SOn5TGeIvzHfxAuKYKPCNWL 7oEYMGPPfUNXMz92Z1a1qvUho3MVjmTDqKdI4eKfyN6B+CBkP/d/kCCAxzzLTcBn 7Xol0/ErVyGjbbohc63LqRcT6zTbogxXsKXklPtLcWCQ1LRZYTbXi80RdcL2b6uP TTk7ewhISkqWnlnEU8uZRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1710699465; x=1710785865; bh=3WbUmrlY3oF3uzxdGYFYWWYV5vtE SfpVJ/vouFwOiI0=; b=YF0t+AVJY1d+N+PxqK3sbMtlxsaCz+o3r8rWLGR8TK8O DhBTU5G16XRzqVCFhyyNMWtWYjjJjGgK/6UUJy3aUYLISmMSjsQJlctpHWF1RBL+ DwnD5AjgJ539qRB8AZQRcFY1GEgrpfmySpzlyioSU5mxr5+rylNKBZWGFgJj+fAn 7WnmBs7R9PQd/AwooWhppuxOby0QIEy13v3i1NFKXPiB6pMmFcv/i8T/r8ghgtGy 2Lf0x45pzNAAckc9fKaUrihQEf5NijWAGJYOzdFfQWFzYv1GWSpghaHrxN+bHLuP NGo5xbxUuaay2ZGJkECkk7PHvByYydv7F8vz0E1l3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeehgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculddvfedmnecujfgurhephffvvefujghffgffkfggtgesthdtredttder tdenucfhrhhomhepufhtrhgrfigsvghrrhihvfgvrgcuoehlohhokhesshhtrhgrfigsvg hrrhihthgvrgdrgiihiieqnecuggftrfgrthhtvghrnhepvddvieehfeeflefhueegkeet hfetvdejhffffeekgfeikeehtdelgffhuddvtefgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheplhhoohhksehsthhrrgifsggvrhhrhihtvggr rdighiii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 17 Mar 2024 14:17:44 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Fri, 15 Mar 2024 13:02:22 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281776 Archived-At: Andrea Corallo writes: > Paul Eggert writes: > >> On 3/11/24 06:38, Eli Zaretskii wrote: >> >>> configure.ac says "experimental", so I guess it's not yet reliable >>> enough? >> >> It was added by Dmitry Antipov in 2012. I never use it, and didn't >> even recall it until I looked at configure.ac recently. >> >> I've not have good luck with -lto elsewhere. It can make linking slow >> and it tends to expose compiler bugs. Unless someone's using it >> regularly I would consider it experimental. > > Also as a note. > > I doubt using native compilation with LTO could bring measurable > advantages. > > All the Emacs C primitives we call from elns have a function pointer > indirection as they can be redefined, so GCC can't inline them. Few > support functions are called directly but I would be surprised of any > measurable effect there. > > Best Regards > > Andrea I see. I am going to report this to the GCC bug tracker to try and get it fixed. I would like to use LTO with native compilation, even if it would not bring any measurable advantages. And I feel there has to be some GCC person that knows how to fix this.