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 1tGOAB-002fTI-1g for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Nov 2024 19:57:27 +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 1tGOA9-000bdn-Fq for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Nov 2024 19:57:25 +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 1tGOA9-000bdf-7E for pgsql-bugs@lists.postgresql.org; Wed, 27 Nov 2024 19:57:25 +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 1tGOA6-004NbR-Rj for pgsql-bugs@lists.postgresql.org; Wed, 27 Nov 2024 19:57:24 +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 4ARJv3SN1909653; Wed, 27 Nov 2024 14:57:03 -0500 From: Tom Lane To: Thomas Munro cc: Heikki Linnakangas , =?UTF-8?Q?Bastien_Roucari=C3=A8s?= , pgsql-bugs@lists.postgresql.org Subject: Re: Detection of hadware feature => please do not use signal In-reply-to: <1492578.1732574410@sss.pgh.pa.us> References: <4496616.iHFcN1HehY@portable-bastien> <1156374.1730396928@sss.pgh.pa.us> <7ec1c65c-1a28-49a7-af43-f77c260a3df6@iki.fi> <1292593.1730399134@sss.pgh.pa.us> <707008.1732325995@sss.pgh.pa.us> <736756.1732341046@sss.pgh.pa.us> <865773.1732399354@sss.pgh.pa.us> <885805.1732406935@sss.pgh.pa.us> <1074317.1732479406@sss.pgh.pa.us> <1216860.1732491268@sss.pgh.pa.us> <1229505.1732498033@sss.pgh.pa.us> <1346552.1732549297@sss.pgh.pa.us> <1430419.1732557238@sss.pgh.pa.us> <1492578.1732574410@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 25 Nov 2024 17:40:10 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1909651.1732737423.1@sss.pgh.pa.us> Date: Wed, 27 Nov 2024 14:57:03 -0500 Message-ID: <1909652.1732737423@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Early returns are that they're all picking the +simd option, and > seem to be just as happy with that as they were without it. > I wonder if we could just drop the "without" probe altogether. > It'd save some configure cycles for other platforms (since they'll > fruitlessly run through all of these tests). Now that we have a nearly-complete census of the buildfarm, the end result is that they are all happy with the +simd spelling ... except for one. "gull" rejects it: clang: error: unsupported argument 'armv8-a+crc+simd' to option '-march=' But without +simd it's okay, so removing the other spelling would cause a performance regression on that machine. I find this a bit surprising, because gull is using a reasonably recent compiler (clang version 17.0.4). We have much older clang versions that accept +simd --- but they are all aarch64. gull seems to be our only representative of clang on arm32. So this seems like a gcc vs clang difference that we'll have to put up with. Anyway, I think this thread is now closed: nothing more to do unless someone thinks of a platform we need more bespoke code for. regards, tom lane