From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#69689: 30.0.50; cannot native compile with -flto in native-comp-compiler-options Date: Fri, 15 Mar 2024 13:02:22 -0400 Message-ID: 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="21624"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69689@debbugs.gnu.org, Eli Zaretskii , look@strawberrytea.xyz To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 15 18:03:44 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 1rlAy7-0005OX-AP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Mar 2024 18:03:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlAxr-0002CU-Ca; Fri, 15 Mar 2024 13:03:27 -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 1rlAxp-0002A3-QP for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 13:03: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 1rlAxp-0002Q6-Hi for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 13:03:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlAyP-0001iR-Sw for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 13:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Mar 2024 17:04:01 +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.17105221886518 (code B ref 69689); Fri, 15 Mar 2024 17:04:01 +0000 Original-Received: (at 69689) by debbugs.gnu.org; 15 Mar 2024 17:03:08 +0000 Original-Received: from localhost ([127.0.0.1]:53659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAxY-0001h3-CM for submit@debbugs.gnu.org; Fri, 15 Mar 2024 13:03:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAxV-0001gX-KH for 69689@debbugs.gnu.org; Fri, 15 Mar 2024 13:03:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlAwo-0002FN-U9; Fri, 15 Mar 2024 13:02:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=F1dDlMlbex/Ht91vpJ9cdfpmny8J6aFSw9yuFt4SyeE=; b=FXnQMI3C4A7ark8tMuOW EIcdmwU+iZIjqNAyHCEpjPx3C7TequL7eveuj8v6yl+WhQ+E/TfiRr5ioAa8nyRzGXEgntK8t4uqu pIMaK2XSKGulZ8oNR0mrDkiyZjXsLyb5/L3ZncAJNw5zBdCmk+uDni/eFxFwzeSO4eTTCjVIHYXeW l3aAnIlZpkpb48BVkjPL0bwmHwoY0HCoHuWo7gdmPm8UMJ5R1vN95Dr667ObqM/4Vqut0Q24sf8cX BRUhcalIvUi8Ykac0kbHkcE36s+ODYwh1F3NrbIwNro+mJcBXuVFE4jHMeVwoF3hzJMob3aWpoTn4 MPsBvU4Z5GcUrw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rlAwo-0002w5-Bm; Fri, 15 Mar 2024 13:02:22 -0400 In-Reply-To: (Paul Eggert's message of "Mon, 11 Mar 2024 18:03:32 -0700") 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:281690 Archived-At: 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