pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Provide overflow safe integer math inline functions.
Date: Sun, 17 Dec 2017 11:03:49 -0500
Message-ID: <3357.1513526629@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqS-T=GgEHX6aEAk_2X5B9uAUJgDOxHU5u1PkQfV1iuLjA@mail.gmail.com>
References: <E1eOvQF-00075r-Cy@gemulon.postgresql.org>
	<20171213213754.pydkyjs6bt2hvsdb@alap3.anarazel.de>
	<20171217003207.3myeahkbsm63kbvl@alap3.anarazel.de>
	<CAB7nPqS-T=GgEHX6aEAk_2X5B9uAUJgDOxHU5u1PkQfV1iuLjA@mail.gmail.com>

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




view thread (16+ messages)  latest in thread

Message-ID: <3357.1513526629@sss.pgh.pa.us>
Permalink:  ../3357.1513526629@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3357.1513526629@sss.pgh.pa.us

 · 

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, michael.paquier@gmail.com, andres@anarazel.de
  Subject: Re: pgsql: Provide overflow safe integer math inline functions.
  In-Reply-To: <3357.1513526629@sss.pgh.pa.us>
  References: <E1eOvQF-00075r-Cy@gemulon.postgresql.org> <20171213213754.pydkyjs6bt2hvsdb@alap3.anarazel.de> <20171217003207.3myeahkbsm63kbvl@alap3.anarazel.de> <CAB7nPqS-T=GgEHX6aEAk_2X5B9uAUJgDOxHU5u1PkQfV1iuLjA@mail.gmail.com> <3357.1513526629@sss.pgh.pa.us>

* 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