Re: strict aliasing

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: strict aliasing
Дата
Msg-id 82r519wtod.fsf@mid.bfk.de
обсуждение исходный текст
Ответ на Re: strict aliasing (was: const correctness)  (Andres Freund <andres@anarazel.de>)
Ответы Re: strict aliasing  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
* Andres Freund:

> I don't gcc will ever be able to call all possible misusages. E.g. The
> List api is a case where its basically impossible to catch everything
> (as gcc won't be able to figure out what the ListCell.data.ptr_value
> pointed to originally in the general case).

Correct, if code is not strict-aliasing-safe and you compile with
-f-strict-aliasing, GCC may silently produce wrong code.  (Same with
-fwrapv, by the way.)

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99


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

Предыдущее
От: Yeb Havinga
Дата:
Сообщение: Re: [REVIEW] Patch for cursor calling with named parameters
Следующее
От: Kohei KaiGai
Дата:
Сообщение: Prep object creation hooks, and related sepgsql updates