[gold] PATCH: Filter out -Wp,-D_FORTIFY_SOURCE=. with -O0
H.J. Lu
hjl.tools@gmail.com
Thu Oct 25 20:45:00 GMT 2012
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.
More information about the Binutils
mailing list