[PATCH] libstdc++: testsuite: adjust name_fortify test for pre-defined _FORTIFY_SOURCE
Sam James
sam@gentoo.org
Sun Oct 13 23:57:15 GMT 2024
Jonathan Wakely <jwakely@redhat.com> writes:
> On Sun, 13 Oct 2024 at 23:23, Sam James <sam@gentoo.org> wrote:
>>
>> Otherwise we get failures with toolchains that have _FORTIFY_SOURCE
>> defined already to a different value like 3.
>
> I was going to say we could do:
>
> #ifndef _FORTIFY_SOURCE
> #define _FORTIFY_SOURCE 2
> #endif
>
> But I realised that the original names.cc test will already run with
> whatever default value the toolchain uses. So this looks fine, thanks.
Thanks, pushed.
> [...]
More information about the Libstdc++
mailing list