This is the mail archive of the
mailing list for the binutils project.
Re: [gold] PATCH: Filter out -Wp,-D_FORTIFY_SOURCE=. with -O0
On Thu, Oct 25, 2012 at 1:41 PM, Ian Lance Taylor <email@example.com> wrote:
> On Wed, Oct 24, 2012 at 9:37 PM, H.J. Lu <firstname.lastname@example.org> wrote:
>> When binutils is configured with -Wp,-D_FORTIFY_SOURCE=2 in CFLAGS
>> and CXXFLAGS, gold tests failed to compile:
>> /usr/include/features.h:314:4: warning: #warning _FORTIFY_SOURCE
>> requires compiling with optimization (-O) [-Wcpp]
>> This patch filters out -Wp,-D_FORTIFY_SOURCE=. when -O0 is used. OK
>> to install?
> Is there any reason to think that people are likely to do this? It
> hardly seems worth it.
Fedora builds binutils rpm with it.