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

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Bastien Roucariès <rouca@debian.org>, pgsql-bugs@lists.postgresql.org
Date: 2024-11-23T23:50:09Z
Lists: pgsql-bugs
On Sun, Nov 24, 2024 at 11:02 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU

Interesting.  Happens also on Linux starting with GCC 11, apparently.
Here's one with some clues:

https://github.com/checkpoint-restore/criu/issues/1653#issuecomment-986034428

We have a few Linux armv7 animals in the farm, but using GCC 10 and
older so not seeing it yet.



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.