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 17:41:30 +0300 Message-ID: <87fs6gkjmt.fsf@aia00820.aia.gr> References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> <86edm2jtih.fsf@gnu.org> <83jzvu1ijw.fsf@gnu.org> <87mt0pjk2w.fsf@aia00820.aia.gr> <83r0q1z04k.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="27788"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: cyril.arnould@outlook.com, arash@gnu.org, svraka.andras@gmail.com, Deus Max , 63365@debbugs.gnu.org, acorallo@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 24 16:42:16 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 1qD4St-00073y-KV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jun 2023 16:42:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qD4Si-00082R-B8; Sat, 24 Jun 2023 10:42: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 1qD4Sg-000821-PM for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2023 10:42:02 -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 1qD4Sg-0004AU-Gx for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2023 10:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qD4Sg-0004YE-BT for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2023 10:42: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 14:42: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.168761770917471 (code B ref 63365); Sat, 24 Jun 2023 14:42:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 24 Jun 2023 14:41:49 +0000 Original-Received: from localhost ([127.0.0.1]:41228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qD4SS-0004Xi-Jk for submit@debbugs.gnu.org; Sat, 24 Jun 2023 10:41:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:48937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qD4SQ-0004XP-9b for 63365@debbugs.gnu.org; Sat, 24 Jun 2023 10:41:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1687617697; x=1688222497; i=deusmax@gmx.com; bh=GNC52xdrGRu0DHbOvL3xRV+QCrwX6EdvWRY1AhyL1Hs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=AViyTCWF3JrivMVy3x9pGbq6ppxGbBcI5Znm5OJbmUoEwrbA02gYF9GO2SV1MCAY0bbZ8gm /rpW4AGv6oL89gcj6B8BjtxCfF1/+EgssaiHKqAgP4kcHd0JReO/rQ94LtC3d7aF5DlzdjniH ftW6vs7fDEK/IPZk+rmVY/NzDpuNyWwm3lnMDxfX2+QptYI1XBVXcXuymoPke+S+Nt8a4kttt 8EdP/q1f0OayR2Go0wr5R95xVP3lKphmLKKu4ZHuVjpN/uMRp/HMwfFvnBfA0ISkq4Hc5gxH0 xmqmi0PO/FOQLoZIgAAiZyt7Uy+MzPI4ZxKbm564tatS9VXfpieg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from aceraspire5 ([141.237.204.245]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MIx3I-1qWOpG45gg-00KTb2; Sat, 24 Jun 2023 16:41:37 +0200 In-Reply-To: <83r0q1z04k.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Jun 2023 12:21:31 +0300") X-Provags-ID: V03:K1:ZJ8zMEZau7bM3s8DRZhzHYWLuQN5U1la2YwIMSahQWEQ5aSgAVl mDro3c4i7mzCdV1Yd5kayaJGqwS68Ni/x89SWnSO67ntMss23aup4nPXN6ID1AF58YxBnzE IfiX5F1blWpeCW+mJhVJ9E5Y8OoQbS4GG0OXsOvRXxZtUr6I8bsySSLNe6xiGQ4nvEtFp21 Z926C8TeQ5nVEgUJC8ziw== UI-OutboundReport: notjunk:1;M01:P0:Rym447MyCgc=;6WUIYqafcH1RCHmgFwOP3qL6Dnn xk9oHgwJJAH9Uz915Bhnx/nsTq5+ZByE3XlLddkoVDR/nxX5Zoz9ldNUHX1y0hgdczCRE6620 yC7hhHpTMBqPpq5RFLgcj+hYizSL6yqPZ/V99R95u9e9WfbNVoJpl6jaibfSZarvrHf8hTaVF Bl+NXOqtBeJxc9mNz8gC6bw4InvIQ63oyf72yOAxQJJ84MW0jtx01RZ49IHveJnRGnC6LM3eX 3txNqT9GhutUN66oOOUV14A8rDPXCfDRHMdZ6i5AROi8IfNgSmvcZU278W0jlThT2TpwEseK8 iRN0BVXgiNGYjoXO3T7Oo3x8B+R+dEJSnx9K8eGz6EtqMciJ9KJ0+YlDfSpooaErQZPDja4jY PkUOiS04gASpNzwfBl2RHerzAM8QifKDcQIiooFKagDa+yfLBll0m6/ieMmn59bnpVjTGj6oK d+oDYTbJzo48oVC4Fm3RkmNWRkzP9MWz3BMKRY4e4rH44Nasm2OXi3rl5GD3lm4D6yn3d3bbI 1+MzgKqC74D+5ZtwIT2LPRH216Gqa36Jp0CAnvaDCqNZnhzNi3uvP08uo6AtDqR+gQ2MRjPAN dD3F/N+gSFErsbNLR3tHi22UwcVrHVB8l+TuF63dVlPAhXix9Nz4Idc2ZkvrX0F+SKrmtHcNd 0y+ETo9DcW3ow22I7IURKro19Ny0q/NRFzUqLZpBSqnwQBnOx3QDKo44kBJ68Sh4iC2qFMGYN 9x6zuJ4LaZ3OrZ+jKBET1lpT1JajVdXO/pyXHTRPx90AcxRQlydeRaZgvafiwT73cZnv2Mgf 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:263994 Archived-At: On 2023-06-24T12:21 Sat, Eli Zaretskii wrote: >> From: Deus Max >> Cc: Arash Esbati , 63365@debbugs.gnu.org, acorallo@gnu= .org, >> svraka.andras@gmail.com, cyril.arnould@outlook.com >> Date: Sat, 24 Jun 2023 12:17:11 +0300 >> >> 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 buildin= g >> >> > 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 n= o >> > 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 th= e >> > 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= ? > > I don't think it's our business to document this. The default build > procedure correctly uses -O2. People who use non-default compilation > switches should know what they are doing. Then whose business is it? The default of course is correct, also it is not intuitive that -O3 is wrong. People who...should know what they are doing, but a little explanation goes a long way. It also helps newcomers catch up.