pgsql: Try harder to detect unavailability of __builtin_mul_overflow(in

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Try harder to detect unavailability of __builtin_mul_overflow(in
Date: 2017-12-17 16:52:26
Message-ID: E1eQcAs-0001cL-Fu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-12-17 17:02:18 Re: pgsql: Use new overflow aware integer operations.
Previous Message Tom Lane 2017-12-17 16:03:49 Re: pgsql: Provide overflow safe integer math inline functions.