[PATCH] PR libstdc++/80446 cope with libc defining __has_builtin
Jonathan Wakely
jwakely@redhat.com
Wed Apr 19 15:18:00 GMT 2017
On 19/04/17 11:49 +0100, Jonathan Wakely wrote:
>Both newlib and FreeBSD have this in libc headers:
>
>#ifndef __has_builtin
>#define __has_builtin(x) 0
>#endif
>
>This means our attempts to use #ifdef __has_builtin aren't reliable,
>so we need a different approach. With this patch we don't care whether
>it's defined or not, only its value.
>
> PR libstdc++/80446
> * include/std/type_traits (is_aggregate): Change __has_builtin checks.
> * libsupc++/new (launder): Likewise.
>
>Tested ppc64le-linux and x86_64-freebsd11.0, committed to trunk.
Jakub pointed out I forgot to update the macro name in a comment.
Smoke-tested and committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 621 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170419/9a7671dc/attachment.bin>
More information about the Libstdc++
mailing list