This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] libstdc++/14608 Add C++-conforming wrappers for stdlib.h and math.h
- From: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Cc: Jonathan Wakely <jwakely at redhat dot com>
- Date: Wed, 20 Jan 2016 17:17:17 +0100
- Subject: Re: [patch] libstdc++/14608 Add C++-conforming wrappers for stdlib.h and math.h
- Authentication-results: sourceware.org; auth=none
- References: <20160108191852 dot GN30323 at redhat dot com> <20160119214359 dot GL15084 at redhat dot com>
- Reply-to: vogt at linux dot vnet dot ibm dot com
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
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany