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 1tCnAL-00Cu8b-J7 for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Nov 2024 21:50:44 +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 1tCn9I-001hc4-Cf for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Nov 2024 21:49:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCn9I-001hbv-3z for pgsql-bugs@lists.postgresql.org; Sun, 17 Nov 2024 21:49:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCn9B-002TM7-1b for pgsql-bugs@lists.postgresql.org; Sun, 17 Nov 2024 21:49:39 +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 4AHLnT4N3169080; Sun, 17 Nov 2024 16:49:29 -0500 From: Tom Lane To: Thomas Munro cc: 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> Comments: In-reply-to Thomas Munro message dated "Mon, 18 Nov 2024 10:18:30 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3169078.1731880169.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 17 Nov 2024 16:49:29 -0500 Message-ID: <3169079.1731880169@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Mon, Nov 18, 2024 at 9:26 AM Tom Lane wrote: >> Fun. Well, now that we insist on C99 support in all branches, >> I wonder whether we can just remove all the non-stdbool support. >> The one thing that looks tricky is that we insist on sizeof(bool) >> being 1, but are there any remaining supported platforms where >> it isn't? The buildfarm doesn't have any examples. > So far I have found only Apple/Darwin PPC (RIP), where this was > occasionally an issue. Yeah. Well, what say we leave the "typedef unsigned char bool" pathway in place, but set things up to use that only if sizeof the stdbool type isn't 1 --- and then it's up to any hypothetical users of that pathway to choose a compiler and compiler options that won't choke on it. regards, tom lane