This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add C++ special math functions to C++17
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>, Jakub Jelinek <jakub at redhat dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 11 Mar 2016 16:34:36 +0000
- Subject: Re: Add C++ special math functions to C++17
- Authentication-results: sourceware.org; auth=none
- References: <20160310102417 dot GB16308 at physik dot fu-berlin dot de> <56E1924E dot 6070703 at verizon dot net> <CAH6eHdQ0Zc3XNsHtN9ExCyWZd0mQ9oLnAs80Vna8gDvj8JbDUA at mail dot gmail dot com> <56E2F2C5 dot 2050806 at verizon dot net>
On 11 March 2016 at 16:31, Ed Smith-Rowland <3dw4rd@verizon.net> wrote:
> On 03/11/2016 10:55 AM, Jonathan Wakely wrote:
>>
>> The change approved in Jacksonville was to only add the special
>> functions to <cmath> and not <math.h>
>>
> That's easy.
> OK, since they changed that and the macro and made it nonconditional I
> should also drop the old-style macros __WANT_MATH_CANNEVERREMEMBER__ and the
> old-style version macro.
> So, in other words, we're *not* actually supporting TR29124 (that's fine by
> me).
> We can tweak the web pages.
> People on C++11, C++14 can use tr1.
I think we can keep 29124 support for pre-C++17, and for that case
<math.h> will include the functions (when the ICANNEVERREMEMBEREITHER
macro is defined).
> Did they keep the Cisms like:
>
> float
> foobarf(float x);
>
> double
> foobar(double x);
>
> long double
> foobarl(long double x);
Yes, I think so.
Let's do this after gcc6 though.