Re: pgsql: Inline CRC computation for small fixed-length input on x86 - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Inline CRC computation for small fixed-length input on x86
Date
Msg-id 3871155.1743428028@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Inline CRC computation for small fixed-length input on x86  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
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



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Inline CRC computation for small fixed-length input on x86
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Mention clock synchronization recommendation for hot_standb