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

Ian Lance Taylor iant@google.com
Thu Oct 25 21:06:00 GMT 2012


On Thu, Oct 25, 2012 at 1:45 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>
>> Is there any reason to think that people are likely to do this?  It
>> hardly seems worth it.
>>
>
> Fedora builds binutils rpm with it.

That in conjunction with the -O0 warning seems to me to be insane.

OK, can you write a patch that simply removes the -Wp,-D_FORTIFY_SRC
option from all testsuite builds?  I don't see any reason to make the
gold testsuite more complex by sometimes using CXXCOMPILE and
sometimes using CXXCOMPILE_NFORTIFY.  The use of _FORTIFY_SRC is
irrelevant for the gold testsuite.

Also needs a comment explaining why this is necessary.

Ian



More information about the Binutils mailing list