[patch] libstdc++/14608 Add C++-conforming wrappers for stdlib.h and math.h

Jonathan Wakely jwakely@redhat.com
Wed Jan 20 17:45:00 GMT 2016


On 20/01/16 17:17 +0100, Dominik Vogt wrote:
>On Tue, Jan 19, 2016 at 09:43:59PM +0000, Jonathan Wakely wrote:
>> On 08/01/16 19:18 +0000, Jonathan Wakely wrote:
>> >This resolves the longstanding issue that #include <math.h> uses the C
>> >library header, which on most targets doesn't declare the additional
>> >overloads required by C++11 26.8 [c.math], and similarly for
>> ><stdlib.h>.
>> >
>> >With this patch libstdc++ provides its own <math.h> and <stdlib.h>
>> >wrappers, which are equivalent to <cmath> or <cstdlib> followed by
>> >using-directives for all standard names. This means there are no more
>> >inconsistencies in the contents of the <cxxx> and <xxx.h> headers.
>>
>> Tested x86_64-linux, powerpc64le-linux, powerpc-aix,
>> x86_64-freebsd10.2, x86_64-dragonfly4.2
>>
>> Committed to trunk.
>
>I think this fix is incomplete.  There are still some test errors
>because of missing signatures in the Plumhall testsuite.  Please
>check the information I've added to
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401

This should fix it, tested powerpc64le-linux and committed to trunk.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 4490 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160120/cd4388c2/attachment.bin>


More information about the Gcc-patches mailing list