From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Fri, 23 Jun 2023 08:32:26 +0300 Message-ID: <838rca3frp.fsf@gnu.org> References: <86v8ffutg7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35424"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, svraka.andras@gmail.com, cyril.arnould@outlook.com To: Arash Esbati , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 23 07:33:29 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 1qCZQG-0008pR-EX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jun 2023 07:33:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCZPt-0004fA-3n; Fri, 23 Jun 2023 01:33:05 -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 1qCZPq-0004bq-JV for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 01:33: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 1qCZPq-00008i-A9 for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 01:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCZPq-00054g-4n for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 01:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jun 2023 05:33: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.168749834319463 (code B ref 63365); Fri, 23 Jun 2023 05:33:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 23 Jun 2023 05:32:23 +0000 Original-Received: from localhost ([127.0.0.1]:37140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCZPD-00053q-0s for submit@debbugs.gnu.org; Fri, 23 Jun 2023 01:32:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCZPA-00053T-9c for 63365@debbugs.gnu.org; Fri, 23 Jun 2023 01:32:21 -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 1qCZP4-000866-PR; Fri, 23 Jun 2023 01:32: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:References:Subject:In-Reply-To:To:From: Date; bh=ub/fish/NC7d9OzwIB/OGxQHQ1OrlvYTqMxWJZq6hoY=; b=osMI+5NEM+W08W41ou08 XBe89Ho98rMt6/ksSgWGZXVpMOACz6Q7oZp5eWJAtFYI9QYwihJY59F4Do5+yoxgeLSpj3e8H7c68 wUZJjOUisKHymn8t3IIjZNXxtzwjwpc3X/I4YFDuOWgmiUUagxCHxbBuoI24VCguXrNOQ3frJtCKg L98yQCczf7/j9TUGdfB2wWK4UE98l62uqiHUKmnFNG4UEmMXYC/9A4jlFokgYb03Y1BRLkidDxGkq T/CRhuNtPKrT7QSJRD06LL2z21S1Bs+GCSk8k2ZYtKcYLdYetoDdRGx0lhWuoKV/syW/f/Nwem947 izHFXCImWPQVMQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCZP3-00022b-CL; Fri, 23 Jun 2023 01:32:13 -0400 In-Reply-To: <86v8ffutg7.fsf@gnu.org> (message from Arash Esbati on Thu, 22 Jun 2023 22:34:48 +0200) 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:263926 Archived-At: > From: Arash Esbati > Cc: "eliz@gnu.org" , "63365@debbugs.gnu.org" > <63365@debbugs.gnu.org>, " akrl@sdf.org" , > András Svraka > > Date: Thu, 22 Jun 2023 22:34:48 +0200 > > 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: > > CFLAGS='-O3 -g0 -pipe -fno-optimize-sibling-calls' \ > ./configure ... > > and it works again. > > 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. Meanwhile, I'd like to consider a PROBLEMS entry about this, if that's needed. Do I understand correctly that -fno-optimize-sibling-calls is needed for successful building of Emacs 29.0.92 using MinGW64 GCC 13.1? If so, I think we should have this in PROBLEMS. Also, why are you using -O3? That is not recommended when building Emacs. (But I understand that -foptimize-sibling-calls is in -O2, not just in -O3, and so -fno-optimize-sibling-calls is needed even if using -O2, right?)