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 1tE1X2-004fSu-Hu for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Nov 2024 07:23:16 +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 1tE1X0-00DFEJ-0N for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Nov 2024 07:23:14 +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 1tE1Wz-00DFEA-1O for pgsql-bugs@lists.postgresql.org; Thu, 21 Nov 2024 07:23:13 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE1Wv-0034CB-T6 for pgsql-bugs@lists.postgresql.org; Thu, 21 Nov 2024 07:23:12 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 3BFEA138039B; Thu, 21 Nov 2024 02:23:08 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 21 Nov 2024 02:23:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1732173788; x=1732260188; bh=DFPK5HcIMJV/1Z/1FuZ+IS+dAJ9FX3lR 47fBJISYJHM=; b=n6ORgX9UH3rhxGGFplM3GuZFbAr2OrvViqMZeYIAnbDXG8h7 9/Eko3DJW2DifEEan2ilT+13TaHtHhZxw3tow5Ybn74To2gLgTuRI8rpR9dxW6q8 2tuohBcuzRsHYxkAOowGk2an89Pr02k9rLqSYnwBngnVvaP4KVRtoLxMVC7EoaXU eYrR6ROBWICaMUZOB80JtaTxhnSCGTt7E3OGIpQfO68Z+tfu6o7rjA7dqPUeAiIk J39ic+oO5v2Jib/LvLiv1J9/s4NNg/oi4TCcJarcEk6NNtrQ5YbbQFT/8uy9fLeM 19G4vkkstMJWIP34MRixxnO4+4lBc+rdYJgbfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732173788; x= 1732260188; bh=DFPK5HcIMJV/1Z/1FuZ+IS+dAJ9FX3lR47fBJISYJHM=; b=3 pVXmQWFOzGgvmAMyZSrF00RTdTDp33lWjxcDIgk0huXKw9oBq/kncG/5v62hdhaa ld49P8ZiM7DOevxXCnUZZMMVGJ9vimSxZl+FGbvdgHc8MUuBeMtO307DD1xBtJPl Rj/Uzvlr1ZILYxOOGnD69QfbMoJyY3ukFuDggsjpHx5PU/xZL3ckswMi0qBRh0mo 4X0GDAziJxHy+40eZQ4xzSf+dKSIvrffPKROLXRu8z5IK5qpiEwPRyczpsuefcFH sqManwrBfRaI+xY268iaH1StgDEkhyfO1tfZ8DrsUk/eE6HaZZB66gmO4Tx2dGFG wan9+L5xPlIXF3UMxny+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeehgddutdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvg hnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileeh teeljeeghfeuledthfeutedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdho rhhgpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope htghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepthhhohhmrghsrdhmuhhn rhhosehgmhgrihhlrdgtohhmpdhrtghpthhtohepshgrmhesghgvnhhtohhordhorhhgpd hrtghpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdr ohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Nov 2024 02:23:06 -0500 (EST) Message-ID: Date: Thu, 21 Nov 2024 08:23:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23) To: Tom Lane Cc: Thomas Munro , Sam James , pgsql-bugs@lists.postgresql.org 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> Content-Language: en-US From: Peter Eisentraut In-Reply-To: <152145.1732116729@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 20.11.24 16:32, Tom Lane wrote: > Peter Eisentraut writes: >> Note that if we backpatch C23 support, we also need to backpatch at >> least commits a67a49648d9 and d2b4b4c2259. > > Yeah. Our normal theory for this kind of thing is "people are > likely to build our old branches with modern toolchains", so > we are going to have to back-patch C23 compatibility sooner or > later. In fact, we'll have to back-patch to 9.2, or else > decide that those branches are unbuildable on modern platforms > and hence out of scope for compatibility testing. I have checked that with this patch and the two above (well, one is just to remove a warning), you can get PG16 and up building cleanly with gcc-14 -std=gnu23. Before that, you get a ton of warnings and errors related to the node tree walker routines. This is presumably related to commit 1c27d16e6e5. Going further back, the bool patch proposed here assumes that stdbool.h exists unconditionally, which is C99, which is not the baseline for older branches. I think for those it's probably best to leave it alone and just use gcc-15 -std=gnu89 or whatever.