pgsql: Use a more bulletproof test for whether finite() and isinf() are - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Use a more bulletproof test for whether finite() and isinf() are
Date
Msg-id 20060112192325.EB6689DC83A@postgresql.org
Whole thread Raw
List 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
Fran�ois 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Remove extraneous backslash from 'fixseq.sql' example --- mea
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Use a more bulletproof test for whether finite() and isinf() are