Re: __attribute__ for non-gcc compilers

Поиск
Список
Период
Сортировка
От Oskari Saarenmaa
Тема Re: __attribute__ for non-gcc compilers
Дата
Msg-id 54B76766.1070400@ohmu.fi
обсуждение исходный текст
Ответ на Re: __attribute__ for non-gcc compilers  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
15.01.2015, 00:54, Andres Freund kirjoitti:
> I think I'd for now simply not define pg_attribute_aligned() on
> platforms where it's not supported, instead of defining it empty. If we
> need a softer variant we can name it pg_attribute_aligned_if_possible or
> something.

Good point, all attributes that actually change program behavior
(aligned and packed for now) need to error out during compilation if
they're used and they're not supported by the compiler.

Attributes which may improve optimization or just provide more
information for the developers (noreturn, unused, format) can be defined
empty when they're not supported (or are not supported well enough: GCC
< 3 doesn't know about %z in printf format.)

/ Oskari




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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Commit fest 2015-12 enters money time
Следующее
От: Etsuro Fujita
Дата:
Сообщение: EvalPlanQual behaves oddly for FDW queries involving system columns