pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Try harder to detect unavailability of __builtin_mul_overflow(in
Date: Sun, 17 Dec 2017 16:52:26 +0000
Message-ID: <E1eQcAs-0001cL-Fu@gemulon.postgresql.org> (raw)

Try harder to detect unavailability of __builtin_mul_overflow(int64).

Commit c04d35f44 didn't quite do the job here, because it still allowed
the compiler to deduce that the function call could be optimized away.
Prevent that by putting the arguments and results in global variables.

Discussion: https://postgr.es/m/20171213213754.pydkyjs6bt2hvsdb@alap3.anarazel.de

Branch
------
master

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

Modified Files
--------------
config/c-compiler.m4 | 17 +++++++++--------
configure            |  9 +++++----
2 files changed, 14 insertions(+), 12 deletions(-)



Message-ID: <E1eQcAs-0001cL-Fu@gemulon.postgresql.org>
Permalink:  ../E1eQcAs-0001cL-Fu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eQcAs-0001cL-Fu@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Try harder to detect unavailability of __builtin_mul_overflow(in
  In-Reply-To: <E1eQcAs-0001cL-Fu@gemulon.postgresql.org>
  References: <E1eQcAs-0001cL-Fu@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