Re: pgsql: Provide overflow safe integer math inline functions.
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-committers@postgresql.org
Date: 2017-12-17T16:03:49Z
Lists: pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes: > ... Please note that if you added > a volatile cast to "result" as well, then compilation was able to > complete and regression tests passed... Yeah, that squares with my analysis: the problem with the existing test is that the compiler is throwing away the function call because its output is unused. If I haven't seen something from Andres shortly, I'll push a fix. regards, tom lane
Commits
-
Try harder to detect unavailability of __builtin_mul_overflow(int64).
- c6d21d56f1a9 11.0 landed
-
Try to detect runtime unavailability of __builtin_mul_overflow(int64).
- c04d35f442a8 11.0 landed
-
Fix a number of copy & paste comment errors in common/int.h.
- 11b8f076c02b 11.0 landed
-
Provide overflow safe integer math inline functions.
- 4d6ad31257ad 11.0 cited