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#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Sun, 25 Jun 2023 09:51:13 -0400 Message-ID: References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24513"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, Arash Esbati , 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 Sun Jun 25 15:52:30 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 1qDQAH-0006C9-Th for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jun 2023 15:52:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDQA1-0002ps-Tx; Sun, 25 Jun 2023 09:52:14 -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 1qDQ9q-0002pQ-RN for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:52:04 -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 1qDQ9q-0006jO-Ey for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDQ9p-0000k9-TR for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:52: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: Sun, 25 Jun 2023 13:52:01 +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.16877010882818 (code B ref 63365); Sun, 25 Jun 2023 13:52:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 25 Jun 2023 13:51:28 +0000 Original-Received: from localhost ([127.0.0.1]:42205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDQ9F-0000jI-28 for submit@debbugs.gnu.org; Sun, 25 Jun 2023 09:51:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDQ99-0000j0-UD for 63365@debbugs.gnu.org; Sun, 25 Jun 2023 09:51:24 -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 1qDQ94-0006gC-2X; Sun, 25 Jun 2023 09:51:14 -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=6R/zhIwtxdRdODj1sL78RNXh+5krGfKeptDhXfOQNp4=; b=gOEtvMzvNPxt1NTHiYtx +SMOoUhCDsO43gHWanJH0ozzJFQn5xlDDHN/ZBmBuwWipS/fPp0RLg8gMtrkFPZex5Bfs4dNPjGri LADfmk5rDj32j3n4yThLjbArWx/Szw+8jDqym5g5IlLHIDs0eN4Q5vSpyUx9qfDwszaWtqYYhYLYS u0clxdx30JNIVQXRNNZ/RxVlWBhAUqtl9h08byETWTQZBqIroVET8wlnk0MtBcXDQqK9esZjYKqsd 7r+L3tPvmJISVu5YVK+DfyYijAMdEByM+Z8Hs7eR769Twwm9Ejx9S0L5qHq5O2IL9++UUt4oEgN+D wKxvCyeG+2rk+A==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qDQ93-0000cY-O6; Sun, 25 Jun 2023 09:51:13 -0400 In-Reply-To: <838rca3frp.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Jun 2023 08:32:26 +0300") 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:264045 Archived-At: Eli Zaretskii writes: >> From: Arash Esbati >> Cc: "eliz@gnu.org" , "63365@debbugs.gnu.org" >> <63365@debbugs.gnu.org>, " akrl@sdf.org" , >> Andr=C3=A1s Svraka >> >> Date: Thu, 22 Jun 2023 22:34:48 +0200 >>=20 >> Many thanks for digging into this. I can confirm that Emacs builds with >> -fno-optimize-sibling-calls in CFLAGS. I have a script which (now) >> does: >>=20 >> CFLAGS=3D'-O3 -g0 -pipe -fno-optimize-sibling-calls' \ >> ./configure ... >>=20 >> and it works again. >>=20 >> Now the question is: Is this considered a GCC bug and we should close >> this report as notabug? > > AFAIR, last Andrea looked into this he was surprised by this finding > and didn't understand how -foptimize-sibling-calls could cause such > problems. I hope Andrea will come up with some tests for you guys to > provide more information, so he does eventually understand the > cause(s). I don't think we can in good faith claim this is a GCC bug > before we understand the problem better. Unfortunatelly I've trouble thinking to such a test.=20=20 Maybe someone should compare the two binaries (with and without -foptimize-sibling-calls) to understand which compilation unit (and which function) differs in details. Hopefully this could help us to pinkpoint the function causing the issue? Once that is done it's more easy to understand what the compiler is doing. Thanks Andrea