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: Thu, 29 Jun 2023 08:20:36 +0300 Message-ID: <83sfaau9nf.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, arash@gnu.org, acorallo@gnu.org, svraka.andras@gmail.com To: Cyril Arnould Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 29 07:21: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 1qEk5w-0006YQ-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Jun 2023 07:21:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEk5g-0006sg-Mk; Thu, 29 Jun 2023 01:21:13 -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 1qEk5W-0006sC-87 for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 01:21:06 -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 1qEk5V-0001Yw-Vs for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 01:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEk5V-0003fw-Ii for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 01:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2023 05:21: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.168801602314076 (code B ref 63365); Thu, 29 Jun 2023 05:21:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 29 Jun 2023 05:20:23 +0000 Original-Received: from localhost ([127.0.0.1]:52059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEk4r-0003es-Ax for submit@debbugs.gnu.org; Thu, 29 Jun 2023 01:20:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEk4o-0003ec-2a for 63365@debbugs.gnu.org; Thu, 29 Jun 2023 01:20:20 -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 1qEk4h-0001Ep-Da; Thu, 29 Jun 2023 01:20:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MmmIb0LG5d+eWxQcELdoioALfpQyUO0tUSb+AB421s8=; b=ePOlYw3uOa29 Bpq3ifPM1x7HpHBmI7C7k5ieAwlOcQGnkSvp9LYa/ZwriZrdT1DIGfMKaywPAErKHgfqpHAgE/bGk MQ2rfc+tW06qoIgQPfd7f1iutWlZGH18PfnvlJZyqGXUsERf+dPuyIooUuHmu17EUehEUL3rhXOJm KCFysnl4AMEpie5iMTiMsfoDAmJXrKqBsqOInlQiVlaaI7o0b2lz1kD+CCNJ92loMqWZiqLFp/+x8 YX7Di38mphwvFrOFM056OOtNjUtXYuLC5uOludJ6OZtSSsPpTO+DzGS7wyh7OWWH3NtWOXXtbIMW6 vrQDo39D3f3lCvXvbAMbyw==; 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 1qEk4f-0005V2-QW; Thu, 29 Jun 2023 01:20:10 -0400 In-Reply-To: (message from Cyril Arnould on Wed, 28 Jun 2023 23:16:58 +0000) 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:264254 Archived-At: > From: Cyril Arnould > CC: "63365@debbugs.gnu.org" <63365@debbugs.gnu.org> > Date: Wed, 28 Jun 2023 23:16:58 +0000 > > Ok, I think I got it; it's src/thread.c. The following build succeeds: > > git clean -xdf > git checkout emacs-29.0.92 > ./autogen.sh > ./configure --with-native-compilation > cd src > make temacs.exe > make thread.o -W thread.c CFLAGS='-g3 -O2 -gdwarf-2 -fno-optimize-sibling-calls' > cd .. > make OK, so I guess the next step is to compare the code produced from thread.c between these two compilations. Like this: cd src objdump -d -S thread-with.o > with.txt objdump -d -S thread-without.o > without.txt diff -ubBw with.txt without.txt where the two *.o files are thread.o you get when compiling, respectively, with and without -fno-optimize-sibling-calls option. Then post here the two *.txt files and the diffs, and let's see where this leads us. (I hope the two *.txt files will not be identical...) Thanks.