Re: xlc 12.1 miscompiles 32-bit ginCompareItemPointers()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Noah Misch <noah(at)leadboat(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: xlc 12.1 miscompiles 32-bit ginCompareItemPointers()
Date: 2015-07-19 20:22:47
Message-ID: 30183.1437337367@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)anarazel(dot)de> writes:
> On July 19, 2015 9:50:33 PM GMT+02:00, Noah Misch <noah(at)leadboat(dot)com> wrote:
>> I propose to expand the gin_private.h "#ifdef PG_USE_INLINE" test to
>> exclude xlc 32-bit configurations. The last 32-bit AIX kernel exited
>> support on 2012-04-30.

> I vote to simply error out in that case then. Trying to fix individual compiler bugs in an niche OS sounds like a bad idea.

I think I'm with Andres --- are there really enough users of this
configuration to justify working around such a bug?

More: if the compiler does have a bug like that, how much confidence can
we have, really, that there are no other miscompiled places and won't be
any in the future? If we are going to support this configuration, I think
what the patch ought to do is disable PG_USE_INLINE globally when this
compiler is detected. That would revert the behavior to what it was
before 43d89a2. We have absolutely no field experience justifying the
assumption that a narrower fix would be safe.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2015-07-19 20:32:16 Re: xlc 12.1 miscompiles 32-bit ginCompareItemPointers()
Previous Message Tom Lane 2015-07-19 20:16:20 Re: Support for N synchronous standby servers - take 2