forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5980f18
committed
Update configure probes for CFLAGS needed for ARM CRC instructions.
On ARM platforms where the baseline CPU target lacks CRC instructions,we need to supply a -march flag to persuade the compiler to compilesuch instructions. It turns out that our existing choice of"-march=armv8-a+crc" has not worked for some time, because recent gccwill interpret that as selecting software floating point, and thenwill spit up if the platform requires hard-float ABI, as most donowadays. The end result was to silently fall back to software CRC,which isn't very desirable since in practice almost all currentlyproduced ARM chips do have hardware CRC.We can fix this by using "-march=armv8-a+crc+simd" to enable thecorrect ABI choice. (This has no impact on the code actuallygenerated, since neither of the files we compile with this flagdoes any floating-point stuff, let alone SIMD.) Keep the test for"-march=armv8-a+crc" since that's required for soft-float ABI,but try that second since most platforms we're likely to build onuse hard-float.Since this isn't working as-intended on the last several years'worth of gcc releases, back-patch to all supported branches.Discussion:https://postgr.es/m/4496616.iHFcN1HehY@portable-bastien1 parent4570b22 commit5980f18
3 files changed
+58
-4
lines changedLines changed: 45 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17482 | 17482 |
| |
17483 | 17483 |
| |
17484 | 17484 |
| |
17485 |
| - | |
| 17485 | + | |
| 17486 | + | |
17486 | 17487 |
| |
17487 | 17488 |
| |
17488 | 17489 |
| |
| |||
17525 | 17526 |
| |
17526 | 17527 |
| |
17527 | 17528 |
| |
17528 |
| - | |
| 17529 | + | |
| 17530 | + | |
| 17531 | + | |
| 17532 | + | |
| 17533 | + | |
| 17534 | + | |
| 17535 | + | |
| 17536 | + | |
| 17537 | + | |
| 17538 | + | |
| 17539 | + | |
| 17540 | + | |
| 17541 | + | |
| 17542 | + | |
| 17543 | + | |
| 17544 | + | |
| 17545 | + | |
| 17546 | + | |
| 17547 | + | |
| 17548 | + | |
| 17549 | + | |
| 17550 | + | |
| 17551 | + | |
| 17552 | + | |
| 17553 | + | |
| 17554 | + | |
| 17555 | + | |
| 17556 | + | |
| 17557 | + | |
| 17558 | + | |
| 17559 | + | |
| 17560 | + | |
| 17561 | + | |
| 17562 | + | |
| 17563 | + | |
| 17564 | + | |
| 17565 | + | |
| 17566 | + | |
| 17567 | + | |
| 17568 | + | |
| 17569 | + | |
| 17570 | + | |
17529 | 17571 |
| |
17530 | 17572 |
| |
17531 | 17573 |
| |
| |||
17565 | 17607 |
| |
17566 | 17608 |
| |
17567 | 17609 |
| |
| 17610 | + | |
17568 | 17611 |
| |
17569 | 17612 |
| |
17570 | 17613 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2088 | 2088 |
| |
2089 | 2089 |
| |
2090 | 2090 |
| |
2091 |
| - | |
| 2091 | + | |
| 2092 | + | |
2092 | 2093 |
| |
2093 | 2094 |
| |
2094 | 2095 |
| |
2095 |
| - | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2096 | 2100 |
| |
2097 | 2101 |
| |
2098 | 2102 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2284 | 2284 |
| |
2285 | 2285 |
| |
2286 | 2286 |
| |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
2287 | 2294 |
| |
2288 | 2295 |
| |
2289 | 2296 |
| |
|
0 commit comments
Comments
(0)