Re: Detection of hadware feature => please do not use signal

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Bastien Roucariès <rouca@debian.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Heikki Linnakangas <hlinnaka@iki.fi>, pgsql-bugs@lists.postgresql.org
Date: 2024-11-22T10:11:42Z
Lists: pgsql-bugs
On Fri, Nov 8, 2024 at 9:56 PM Bastien Roucariès <rouca@debian.org> wrote:
> I will guard the include by replacing
> +#if defined(__linux__) && !defined(__aarch64__)
> by
> +#if defined(__linux__) && !defined(__aarch64__) && !defined(HWCAP2_CRC32)

Committed like that.  Thanks!
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=aac831cafa



Commits

  1. Update configure probes for CFLAGS needed for ARM CRC instructions.

  2. Support runtime CRC feature probing on NetBSD/ARM using sysctl().

  3. Use auxv to check for CRC32 instructions on ARM.

  4. Improve our method for probing the availability of ARM CRC instructions.