From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Deus Max Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Sat, 24 Jun 2023 12:17:11 +0300 Message-ID: <87mt0pjk2w.fsf@aia00820.aia.gr> References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> <86edm2jtih.fsf@gnu.org> <83jzvu1ijw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, Arash Esbati , acorallo@gnu.org, svraka.andras@gmail.com, cyril.arnould@outlook.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 24 11:18:23 2023 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 1qCzPS-00090q-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jun 2023 11:18:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCzPA-0007gf-U9; Sat, 24 Jun 2023 05:18:04 -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 1qCzP9-0007gM-7R for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2023 05:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCzP8-0006XK-VJ for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2023 05:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCzP8-0007BK-CT for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2023 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Deus Max Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jun 2023 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63365 X-GNU-PR-Package: emacs Original-Received: via spool by 63365-submit@debbugs.gnu.org id=B63365.168759825327566 (code B ref 63365); Sat, 24 Jun 2023 09:18:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 24 Jun 2023 09:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:39925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCzOe-0007AY-Ns for submit@debbugs.gnu.org; Sat, 24 Jun 2023 05:17:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:59337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCzOa-0007AH-Ba for 63365@debbugs.gnu.org; Sat, 24 Jun 2023 05:17:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1687598238; x=1688203038; i=deusmax@gmx.com; bh=5Gj2bztGoZea60skUrcNtP0Uo7+sGPZz6fPNGqPksmk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Cs6uGBv0vPZKrGFguZdTYV79QXQk4bwkdxpSPprEQzsQMrvpQCvXaVGMMAM7n3XPidibYiX 5s4xgZVm4FrEm4NMZ3d20JlYDY0J8WdpKB+xycWjOP5TB0uDn8d0kgiyb+oDUNivmkaV+J910 tREKmrabLiQSOVcB/fbX1ehcn8zPAMDAPr7dgwF+XEECgzUba26ERPukU3aWYXGMPpxzTNQOr EPH1C4LQ8T2T/bBPI9BdzdhYD/0G9du9i9ep5DwvuY3YbK4nVC7dbsLz+f5ZbgPpywKP3FzkD 96RN6Vir8+nedIJvDeWJZbX4aK04LxK6T+76RZR6CHNcdXzUAjcA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from aceraspire5 ([79.166.62.254]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mel81-1pcpEB2G1N-00aoq9; Sat, 24 Jun 2023 11:17:18 +0200 In-Reply-To: <83jzvu1ijw.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Jun 2023 15:15:15 +0300") X-Provags-ID: V03:K1:cyf6zKrZnZy1XIckzqipwTIF8glrkzze/zNU65sbPSid9fhs0JN k6pyZ0AESAUfV2eeD5Z+B5Ebt8Rft8kz3rKMgNQ8KKeFWL/qEYDL74aXhPJXTBH4amcDcPA O6ILv2Xv3wjfuj5kSxcnSnz8CY+KnCRSqZu1gmHCygt2O4M2zCDxw3zSjqC9cv4X9dBUv0F 5iuNLN5XV1s6V+yPm2qjw== UI-OutboundReport: notjunk:1;M01:P0:p+MTIFp3fZU=;7yI0DTnczkST3+NjTVzLT4B8AsV 651y5v/8eERNZHLmI2BifqnUq7X8msmjBH6+r42Ga71cLEku/8A1piK4CI72KeccgS1ddk8Jy W4+1pS+uNtu6fcbzUzjboNxUW1WA1WmYPwomvdXEN18O29lXxBM5Xoa1YxKh76VS9wUEopaNb zFF5px9b1HRCvVpKk3fOZCUNdVcZy140uGERtsSZ/EGyB5gw6lgTIMkoeVx/nlA+sqLXCg8ul roIpbRWYoEj0UhYZjiXJHcCU7tzNUmPvTKCG9Q/FR04SJ4jPEX+kgiu1JyUMpEzk2ARqFJMaM yVFlVUTQVK1W9K2jRxjjk6LU+6V8efCnHkmL4jdPTQKXz029NYlJOYG+TUgKMJyYAkvLnOIVA jPbix1ZG1BFvNsbpogbrFfI/5U7uPTOv6OHA46+UTkb3fusIyu0r/XxT+sqHRQ+D1Z1ckCAj/ 0Y/XyKcjO2Rig5yzL2zyLq0iDoNf2cd31W9+tHA2iAxPpOhnnC3485cISwIaL9M/w+l+c61V6 fhMZr6ntbKPYEuX9foeNQB/rp7bKeUXHt0y6gxNhnIaaHj7JwcS/m+TnsDnWy1kfEHDj3YBzO CTbEs3R61EjJ8sLobM3qbBTt8LqZOnlxavD3Ks67tJy9pk29ZbEsOTJkYP5PpsDor0d0UlKDG QWc51uJiSldIYaNw/zYHy0j3noa+7vAjhkM6KsAXAzfKgyYvpBMx+jSgYSutL2bPk5VWEutbh Q6tkRUWl34sTqTk9x/0Jfv6LUYe4G91b96Is62wipoBE2XQJodbV+u+oINALf5Dk4LB1nVc0 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:263979 Archived-At: On 2023-06-23T15:15 Fri, Eli Zaretskii wrote: >> From: Arash Esbati >> Cc: Andrea Corallo , cyril.arnould@outlook.com, >> 63365@debbugs.gnu.org, svraka.andras@gmail.com >> Date: Fri, 23 Jun 2023 13:41:10 +0200 >> >> > Also, why are you using -O3? That is not recommended when building >> > Emacs. >> >> I wasn't aware of that. Can you elaborate why -O3 isn't recommended? > > In a nutshell, it bloats the code (due to excessive inlining), with no > real effect on speed. The inner loops in Emacs are very large, and > thus the techniques used by -O3 to speed up code (loop unrolling etc.) > don't really work. Moreover, they could make things worse because the > larger loops might no longer fit into the L1 cache of the CPU. > > The -O3 is well suited to speed up relatively simple algorithms with > tight loops. Emacs has very few of those, in the places that matter > for observable performance. Interesting. This recommendation and the explanation are worth documenting somewhere. Shouldn't a new bug be opened on documenting the GCC -O3 recommendation?