pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Try to detect runtime unavailability of __builtin_mul_overflow(i
Date: Sat, 16 Dec 2017 20:57:00 +0000
Message-ID: <E1eQJW0-0003wJ-Op@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c04d35f442a8c4fd5a20103b31839ec52fce3046

Modified Files
--------------
config/c-compiler.m4 | 12 ++++++++----
configure            |  4 +++-
2 files changed, 11 insertions(+), 5 deletions(-)



Message-ID: <E1eQJW0-0003wJ-Op@gemulon.postgresql.org>
Permalink:  ../E1eQJW0-0003wJ-Op@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eQJW0-0003wJ-Op@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Try to detect runtime unavailability of __builtin_mul_overflow(i
  In-Reply-To: <E1eQJW0-0003wJ-Op@gemulon.postgresql.org>
  References: <E1eQJW0-0003wJ-Op@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox