Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Дата
Msg-id 27946.1349408278@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Список pgsql-hackers
I wrote:
> I've seen this warning in recent Fedora builds, though not on my F16
> production box.  Some googling suggests the locution

> #if __OPTIMIZE__
> #define _FORTIFY_SOURCE 2
> #endif

> but I've not tested that.

A bit later: testing on an F17 box (glibc-2.15-56.fc17.x86_64)
confirms Peter G's complaint, and also confirms that putting
the above into port/linux.h (instead of the template file) fixes the
problem.  Don't know how to disable it on ICC, but I suppose there's
some way to test for ICC via an #if.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Sharing more infrastructure between walsenders and regular backends (was Re: Switching timeline over streaming replication)