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 1tzFH4-00HCui-2X for pgsql-committers@arkaria.postgresql.org; Mon, 31 Mar 2025 13:33:58 +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 1tzFH2-005sVY-P5 for pgsql-committers@arkaria.postgresql.org; Mon, 31 Mar 2025 13:33:56 +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 1tzFH2-005sVQ-I8 for pgsql-committers@lists.postgresql.org; Mon, 31 Mar 2025 13:33:56 +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.96) (envelope-from ) id 1tzFH0-0028jx-2A for pgsql-committers@lists.postgresql.org; Mon, 31 Mar 2025 13:33:55 +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 52VDXmvO3871156; Mon, 31 Mar 2025 09:33:48 -0400 From: Tom Lane To: John Naylor cc: Andres Freund , pgsql-committers@lists.postgresql.org, cookt@blackduck.com Subject: Re: pgsql: Inline CRC computation for small fixed-length input on x86 In-reply-to: <3857592.1743426546@sss.pgh.pa.us> References: <3837990.1743423175@sss.pgh.pa.us> <3857592.1743426546@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 31 Mar 2025 09:09:06 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3871154.1743428028.1@sss.pgh.pa.us> Date: Mon, 31 Mar 2025 09:33:48 -0400 Message-ID: <3871155.1743428028@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: >> What I conclude is that Red Hat hot-wired gcc to assume -msse4.2, >> but they didn't hot-wire clang the same way. > In confirmation of that: everything goes through fine if I manually > add -msse4.2 to configure's choice of BITCODE_CFLAGS. Also, possibly useful for testing purposes: I can reproduce the build failure on RHEL8, and probably elsewhere, with ./configure CFLAGS="-O2 -msse4.2" --with-llvm In this form it's clearly pilot error, because I didn't do anything to put -msse4.2 into CXXFLAGS. But this is another way of confirming that the underlying problem is different default -m switches between gcc and clang. I'm kind of surprised we have not gotten bitten by that before. regards, tom lane