This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold] PATCH: Filter out -Wp,-D_FORTIFY_SOURCE=. with -O0


On Thu, Oct 25, 2012 at 1:41 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Wed, Oct 24, 2012 at 9:37 PM, H.J. Lu <hjl.tools@gmail.com> 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.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]