From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Use a more bulletproof test for whether finite() and isinf() are |
Date: | 2006-01-12 19:24:55 |
Message-ID: | 20060112192455.8E26C9DCDDA@postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Use a more bulletproof test for whether finite() and isinf() are present.
It seems that recent gcc versions can optimize away calls to these functions
even when the functions do not exist on the platform, resulting in a bogus
positive result. Avoid this by using a non-constant argument and ensuring
that the function result is not simply discarded. Per report from
Franois Laupretre.
Tags:
----
REL7_3_STABLE
Modified Files:
--------------
pgsql:
configure.in (r1.217.2.21 -> r1.217.2.22)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.in.diff?r1=1.217.2.21&r2=1.217.2.22)
configure (r1.226.2.23 -> r1.226.2.24)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.diff?r1=1.226.2.23&r2=1.226.2.24)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-01-12 21:48:53 | pgsql: Repair "Halloween problem" in EvalPlanQual: a tuple that's been |
Previous Message | Tom Lane | 2006-01-12 19:24:39 | pgsql: Use a more bulletproof test for whether finite() and isinf() are |