Обсуждение: pgsql: Use a more bulletproof test for whether finite() and isinf() are

Поиск
Список
Период
Сортировка

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

От
tgl@postgresql.org (Tom Lane)
Дата:
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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql:
        configure.in (r1.398.4.9 -> r1.398.4.10)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.in.diff?r1=1.398.4.9&r2=1.398.4.10)
        configure (r1.424.4.10 -> r1.424.4.11)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.diff?r1=1.424.4.10&r2=1.424.4.11)