Re: pgsql: Disable _FORTIFY_SOURCE with ICC - Mailing list pgsql-committers

From Peter Geoghegan
Subject Re: pgsql: Disable _FORTIFY_SOURCE with ICC
Date
Msg-id CAEYLb_Xhg0z+PAdwzWoOr0QmrPNmXwGY19cFL9oqbo5n3GLFKw@mail.gmail.com
Whole thread Raw
In response to pgsql: Disable _FORTIFY_SOURCE with ICC  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pgsql: Disable _FORTIFY_SOURCE with ICC
List pgsql-committers
On 30 September 2012 01:07, Peter Eisentraut <peter_e@gmx.net> wrote:
> Disable _FORTIFY_SOURCE with ICC

I'm having some problems of my own with this. Specifically:

gcc -O0 -g -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -g -I../../src/port -DFRONTEND
-I../../src/include -D_GNU_SOURCE -D_FORTIFY_SOURCE=2
-I/usr/include/libxml2   -c -o qsort.o qsort.c -MMD -MP -MF
.deps/qsort.Po
In file included from /usr/include/stdio.h:28:0,
                 from ../../src/include/c.h:67,
                 from qsort.c:46:
/usr/include/features.h:314:4: warning: #warning _FORTIFY_SOURCE
requires compiling with optimization (-O) [-Wcpp]
...
[peter@peterlaptop port]$ gcc --version
gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2)
...

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: In pg_upgrade, improve error reporting when the number of relati
Next
From: Fujii Masao
Date:
Subject: Re: pgsql: Silence compiler warning about pointer type mismatch on some pla