diff options
author | Andres Freund <andres@anarazel.de> | 2017-12-16 12:49:41 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-12-16 12:49:41 -0800 |
commit | c04d35f442a8c4fd5a20103b31839ec52fce3046 (patch) | |
tree | 7b39615fb8aac2b41fe17c02f91f95981d717341 /src/backend/utils/adt/json.c | |
parent | c757a3da0af0e5eb636eeee2af6602d279162b0a (diff) | |
download | postgresql-c04d35f442a8c4fd5a20103b31839ec52fce3046.tar.gz postgresql-c04d35f442a8c4fd5a20103b31839ec52fce3046.zip |
Try to detect runtime unavailability of __builtin_mul_overflow(int64).
On some systems the results of 64 bit __builtin_mul_overflow()
operations can be computed at compile time, but not at runtime. The
known cases are arm buildfar animals using clang where the runtime
operation is implemented in a unavailable function.
Try to avoid compile-time computation by using volatile arguments to
__builtin_mul_overflow(). In that case we hopefully will get a link
error when unavailable, similar to what buildfarm animals dangomushi
and gull are reporting.
Author: Andres Freund
Discussion: https://postgr.es/m/20171213213754.pydkyjs6bt2hvsdb@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions