From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cyril Arnould Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Fri, 16 Jun 2023 09:04:16 +0000 Message-ID: References: <86wn1jtezk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DU0PR10MB6107E751AFF373767D34C24CE358ADU0PR10MB6107EURP_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32489"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "63365@debbugs.gnu.org" <63365@debbugs.gnu.org>, "eliz@gnu.org" , =?UTF-8?Q?Andr=C3=A1s?= Svraka , " akrl@sdf.org" To: "arash@gnu.org" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 16 11:05:21 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 1qA5OS-00089W-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jun 2023 11:05:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qA5OB-0008SD-Ow; Fri, 16 Jun 2023 05:05:03 -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 1qA5OA-0008Rl-M8 for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 05:05: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 1qA5OA-0001Wx-Cp for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 05:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qA5O9-0008Fe-PZ for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 05:05:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86wn1jtezk.fsf@gnu.org> Resent-From: Cyril Arnould Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2023 09:05: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.168690626831678 (code B ref 63365); Fri, 16 Jun 2023 09:05:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 16 Jun 2023 09:04:28 +0000 Original-Received: from localhost ([127.0.0.1]:48602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA5Na-0008Eq-TH for submit@debbugs.gnu.org; Fri, 16 Jun 2023 05:04:28 -0400 Original-Received: from mail-am6eur05olkn2101.outbound.protection.outlook.com ([40.92.91.101]:20416 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA5NX-0008Eb-78 for 63365@debbugs.gnu.org; Fri, 16 Jun 2023 05:04:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gO9QSjb+mFmxkeZuWv9P8FJZyaX4ZdMAG7Um0AB0rKWEByO/cFjGUD08u1ifUMQc17P2LZFVLM35Ct/D/8mouFovIM/YQdkovQ68ed8lk460AkcVwUc+2ND9AkFLXoxaT/1fsSkvGq31fzYC2Gw/pqvrAgh/+LabmTd/U3/GWui0UTACBB3YdySa/4KcQldW5dE1pV+44Jnt7uHED9GjmY1FSX5qf4zJryWfgei26Mai75uh9ZazDMHSRYKVjU1U3HSd86Y7YKCjWgIMcxtoB+IzNCDa7eX8tHxNcwlfO6srrhILDvGFW0XRoO66n6LhmqrFB0eLxGw5YlHNjT1lcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9azqVhCPO7pSEMqa/jNUQPKBvTLzP9CVN7oXOeUyNOk=; b=fYIjDnlq+2Ll9pdbWO6wxR3TsAraHw8vGvx4FminbQERSGx374q4bPPHKfCVWTtUdRxLKaHmLVlHHVKSXGhF+nj/mj8xRlcgbKeyDMmgPTFHVYv/s2s6CMhM7cEYu+0Jz8t8+Du8uGRobP+1pXSB7TN5WlSwpBPokFMdudskxNi4hxPA+0bUtY8PafgBCrwkVMXzIa2qPrqfRZjemt6LNgHO3IXdOcFrm9SRMPtAf7cQl3rKOBf12bH+snPUHtCtksfpS5Zl8NEZ3QtIeY3dmfw5+h3UJs/ReGO+baw2tAjiTAVf0p6QpUu817wjANYDh8Y+rIr8JaUzECakJjMR+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9azqVhCPO7pSEMqa/jNUQPKBvTLzP9CVN7oXOeUyNOk=; b=a5XusQFs80bMjTUT5x8rjL0vIxpQ+DtvqY6QaPjAujHX2Mb75lP410Ni+aancZrnL5/2/W8OuaGbMd6nT6fCbXoC04xK8UeRE1i9NIrUztULvFZ69PS3mYxGLBZS9TekW91g9MwNjPPyz4yxI77eZpDtyhLf8Zy2lwUVGYpWWYwiVg9rDviAyx9fpL9tzAoHjkubPOyLNBVwPvgCVodA9Mh0kXb5QRxjhk7aT0mNRopLBTp1VlWD8RB5cveteVTuFilG6AoAjZWEnIYFcSy1zRYPRjf0Q2FRTprLBwXUSWKWk91sbxjpOfljGQMqeRV3xKr0NhTIrJsFlBRJf9DH9g== Original-Received: from DU0PR10MB6107.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:3e3::20) by AS4PR10MB5370.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:4ba::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Fri, 16 Jun 2023 09:04:16 +0000 Original-Received: from DU0PR10MB6107.EURPRD10.PROD.OUTLOOK.COM ([fe80::bcd5:ffed:7468:f6c1]) by DU0PR10MB6107.EURPRD10.PROD.OUTLOOK.COM ([fe80::bcd5:ffed:7468:f6c1%4]) with mapi id 15.20.6477.037; Fri, 16 Jun 2023 09:04:16 +0000 Thread-Topic: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Thread-Index: AQHZoDD+uKGTeZs0NEGx2mmv+gI/LQ== Accept-Language: de-CH, en-US Content-Language: de-CH x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [JpZTzz5AtmyXGdWbGJ/ehBuXM+Gzo2sZ] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR10MB6107:EE_|AS4PR10MB5370:EE_ x-ms-office365-filtering-correlation-id: 27ce5444-e100-4c3d-02d7-08db6e48a994 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nMyHqLu0SBMTvtdmRs5o6wrJyntj1cvMd7nnaoyP/VslVezohbBZEdCGxCYjyFRTceyTTtsPYCc+Pt6K3ZqLcgqulGJTilL7Vc67kIsEg0xip8w9LQVhaVY4V/brKxfXQ1V3GOa3F2BjJzkhumxq2WliJuM6zVgj90tnwLhemMQ2SiWn3f9K/uaCQTl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qHXQVU2ZOE26roRBakpCZHbJm2RgGTbV/xUlXIvW0TTxjNOSq0kvUdYuFrnu+x8r+/Y9kFZ222jzyLEH2eu8E7IBb4RaDlwdd0svE8Nhq9/nLfIIe3NW9AnrHfDYXDGTPM4QdRckoK8Wf7OxwfzxR+IH0gxrDGi1n jZsJnLY7Bv4ISlMlBGz/bOgoa7sFlzsZZrSFOV+nG5fmgga4enWwooKh+VskQdUSMZGmUJnmN7tkoZQEgYzHGQbiD7KAr1ue4U X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR10MB6107.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 27ce5444-e100-4c3d-02d7-08db6e48a994 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2023 09:04:16.4285 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR10MB5370 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:263462 Archived-At: --_000_DU0PR10MB6107E751AFF373767D34C24CE358ADU0PR10MB6107EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've been playing around with compiler options. From my findings, the -foptimize-sibling-calls flag breaks the build: ./autogen.sh CFLAGS=3D'-g3 -O1 -gdwarf-2 -foptimize-sibling-calls' \ ./configure --with-native-compilation make OTOH, using -O1 with every flag listed under -O2 *but* -foptimize-sibling-calls results in the build succeeding. The following works as well for me: ./autogen.sh CFLAGS=3D'-g3 -O2 -gdwarf-2 -fno-optimize-sibling-calls' \ ./configure --with-native-compilation make --_000_DU0PR10MB6107E751AFF373767D34C24CE358ADU0PR10MB6107EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I've been playing around with compiler options. From= my findings, the

-foptimize-sibling-calls flag breaks the build:

 

./autogen.sh

CFLAGS=3D'-g3 -O1 -gdwarf-2 -foptimize-sibling-calls= ' \

./configure --with-native-compilation

make

 

OTOH, using -O1 with every flag listed under -O2 *bu= t*

-foptimize-sibling-calls results in the build succee= ding. The following

works as well for me:

 

./autogen.sh

CFLAGS=3D'-g3 -O2 -gdwarf-2 -fno-optimize-sibling-ca= lls' \

./configure --with-native-compilation

make

--_000_DU0PR10MB6107E751AFF373767D34C24CE358ADU0PR10MB6107EURP_--