pgsql: Use -fwrapv in CFLAGS if we are using a version of gcc that

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Use -fwrapv in CFLAGS if we are using a version of gcc that
Дата
Msg-id 20080310215042.EBCBE753F33@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag.
This prevents compiler optimizations that assume overflow won't occur, which
breaks numerous overflow tests that we need to have working.  It is known
that gcc 4.3 causes problems and possible that 4.1 does.  Per my proposal
of some time ago and a recent report from Kris Jurka.

Backpatch as far as 8.0, which is as far as the patch conveniently goes.
7.x was pretty short of overflow tests anyway, so it may not matter there,
even assuming that anyone cares whether 7.x builds on recent gcc.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql:
        configure.in (r1.431.2.23 -> r1.431.2.24)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure.in?r1=1.431.2.23&r2=1.431.2.24)
        configure (r1.461.2.22 -> r1.461.2.23)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure?r1=1.461.2.22&r2=1.461.2.23)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Use -fwrapv in CFLAGS if we are using a version of gcc that
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Use -fwrapv in CFLAGS if we are using a version of gcc that