pgsql: MemSet() must not cast its pointer argument to int32* until after

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: MemSet() must not cast its pointer argument to int32* until after
Дата
Msg-id 20050718155329.35C9E52A0F@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
MemSet() must not cast its pointer argument to int32* until after it has
checked that the pointer is actually word-aligned.  Casting a non-aligned
pointer to int32* is technically illegal per the C spec, and some recent
versions of gcc actually generate bad code for the memset() when given
such a pointer.  Per report from Andrew Morrow.

Modified Files:
--------------
    pgsql/src/include:
        c.h (r1.187 -> r1.188)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/c.h.diff?r1=1.187&r2=1.188)

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

Предыдущее
От: t-ishii@pgfoundry.org (User T-ishii)
Дата:
Сообщение: pgpool - pgpool: version 2.6.1.
Следующее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: MemSet() must not cast its pointer argument to int32* until after