Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFl4u-00Fgtz-Tf for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Nov 2024 02:13:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tFl4s-002uzb-OY for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Nov 2024 02:13:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFl4s-002uzT-Fs for pgsql-bugs@lists.postgresql.org; Tue, 26 Nov 2024 02:13:22 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFl4l-003mui-TJ for pgsql-bugs@lists.postgresql.org; Tue, 26 Nov 2024 02:13:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4AQ2DBc11578471; Mon, 25 Nov 2024 21:13:11 -0500 From: Tom Lane To: Thomas Munro cc: Peter Eisentraut , Sam James , pgsql-bugs@lists.postgresql.org Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23) In-reply-to: References: <87o72eo9iu.fsf@gentoo.org> <3073930.1731867112@sss.pgh.pa.us> <3160019.1731875201@sss.pgh.pa.us> <3169079.1731880169@sss.pgh.pa.us> <3175762.1731883847@sss.pgh.pa.us> <152145.1732116729@sss.pgh.pa.us> <485f5982-18c5-4210-9c7d-7c05453f7033@eisentraut.org> <1447160.1732565223@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 26 Nov 2024 15:03:49 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1578469.1732587191.1@sss.pgh.pa.us> Date: Mon, 25 Nov 2024 21:13:11 -0500 Message-ID: <1578470.1732587191@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > ... I think it might be unlikely to > upset anyone if it works something like this: > * For 16+ nothing, we're going to be C23 clean (after a couple more > back-patches) > * For 9.2-15 on GCC < 15 it'll stay as nothing too > * For 9.2-15 on early GCC 15 adopter distros like Fedora/Gentoo etc > we'll detect C23, and perhaps start spitting out -std=c17 (if you've > detected C23, I think you can assume that C17 is available so we don't > have to do a C17-C11-C99[-C89] search?) > * When 12-15 fall out of support and all compilers are eventually C23+ > compilers, they'll eventually always be getting -std=c17 by the above > rules but no one will mind about that in the ancient branches Sounds plausible to me. Will you work on making that happen? regards, tom lane