Re: const correctness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: const correctness
Дата
Msg-id 21990.1320878878@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: const correctness  (Florian Pflug <fgp@phlo.org>)
Список pgsql-hackers
Florian Pflug <fgp@phlo.org> writes:
> If we're concerned about helping the compiler produce better code,
> I think we should try to make our code safe under strict aliasing
> rules. AFAIK, that generally helps much more than const-correctness.
> (Dunno how feasible that is, though)

The last time we talked about that, we gave up and added
-fno-strict-aliasing, mainly because nobody trusted gcc to warn us about
violations of the aliasing rules.  That was quite some time ago though.
Perhaps recent gcc versions do better?
        regards, tom lane


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Syntax for partitioning
Следующее
От: Daniel Farina
Дата:
Сообщение: Re: 9.1.2 ?