pgsql: Use a more bulletproof test for whether finite() and isinf() are

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:23:25
Message-ID: 20060112192325.EB6689DC83A@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.

Modified Files:
--------------
pgsql:
configure.in (r1.441 -> r1.442)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.in.diff?r1=1.441&r2=1.442)
configure (r1.471 -> r1.472)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.diff?r1=1.471&r2=1.472)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-01-12 19:23:50 pgsql: Use a more bulletproof test for whether finite() and isinf() are
Previous Message Tom Lane 2006-01-12 18:09:44 pgsql: Remove extraneous backslash from 'fixseq.sql' example --- mea