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:39 |
Message-ID: | 20060112192439.854319DCDEE@postgresql.org |
Views: | Raw Message | Whole Thread | 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_4_STABLE
Modified Files:
--------------
pgsql:
configure.in (r1.301.2.18 -> r1.301.2.19)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.in.diff?r1=1.301.2.18&r2=1.301.2.19)
configure (r1.310.2.21 -> r1.310.2.22)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.diff?r1=1.310.2.21&r2=1.310.2.22)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-01-12 19:24:55 | pgsql: Use a more bulletproof test for whether finite() and isinf() are |
Previous Message | Tom Lane | 2006-01-12 19:24:12 | pgsql: Use a more bulletproof test for whether finite() and isinf() are |