Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Subject: Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Date: 2012-10-05 03:22:25
Message-ID: 27654.1349407345@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On Tue, 2012-10-02 at 17:05 +0100, Peter Geoghegan wrote:
>> /usr/include/features.h:314:4: warning: #warning _FORTIFY_SOURCE
>> requires compiling with optimization (-O) [-Wcpp]

> Which glibc version is this? (Run /lib/libc.so)

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.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-10-05 03:37:58 Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Previous Message Peter Eisentraut 2012-10-05 02:55:41 Re: pgsql: Disable _FORTIFY_SOURCE with ICC

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-10-05 03:37:58 Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Previous Message Peter Eisentraut 2012-10-05 02:55:41 Re: pgsql: Disable _FORTIFY_SOURCE with ICC