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

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Use a more bulletproof test for whether finite() and isinf() are
Дата
Msg-id 20060112192412.5357F9DCDD2@postgresql.org
обсуждение исходный текст
Список 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.

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)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Use a more bulletproof test for whether finite() and isinf() are
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Use a more bulletproof test for whether finite() and isinf() are