From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sourceware.org (Postfix) with ESMTPS id F2DC83856259 for ; Thu, 5 May 2022 14:41:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F2DC83856259 X-IronPort-AV: E=Sophos;i="5.91,201,1647298800"; d="scan'208";a="34883503" Received: from pc94-85.math.u-psud.fr ([129.175.94.85]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 16:41:33 +0200 Date: Thu, 5 May 2022 16:41:28 +0200 (CEST) From: Marc Glisse Reply-To: gcc-help@gcc.gnu.org To: =?ISO-8859-15?Q?St=E9phane_Glondu?= cc: Alexander Monakov , gcc-help@gcc.gnu.org, sibid@uvic.ca, Paul Zimmermann Subject: Re: slowdown with -std=gnu18 with respect to -std=c99 In-Reply-To: Message-ID: <4d36d96-2de9-f8ac-2d52-ea32b1cc6d9@grove.saclay.inria.fr> References: <9f7e3aa9-8d46-1fbb-75b-1c8ad9a667f@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 14:41:35 -0000 On Thu, 5 May 2022, Stéphane Glondu via Gcc-help wrote: > As additional data points, the performance with several versions of gcc > (as packaged in Debian testing/unstable): > > | gcc-9 | gcc-10 | gcc-11 | gcc-12 | > ------------|-------|--------|--------|--------| > -std=c99 | 24 | 23.5 | 23 | 23 | > -std=gnu18 | 43 | 16.8 | 38 | 38 | > > One can see that the performance stays relatively constant with > -std=c99, but varies significantly with -std=gnu18. Could you compare with c18 or gnu99, to determine if the issue is with c vs gnu (most likely since fma seems important) or 99 vs 18? -- Marc Glisse