public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: Nathaniel Shead <nathanieloshead@gmail.com>
Cc: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [Ping][PATCH] libstdc++: Add missing functions to <cmath> [PR79700]
Date: Wed, 17 May 2023 10:05:59 +0100	[thread overview]
Message-ID: <CACb0b4ncbJoLetZ3Ru_khcxOMJ-eykeEkkCH-zYHBW_uM5uwWA@mail.gmail.com> (raw)
In-Reply-To: <CACEF2k4Cy6=u+83YdzwPCC0ecYWugb3qNAC2tEi5VAWHcgGeCA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2350 bytes --]

On Wed, 17 May 2023 at 09:37, Nathaniel Shead wrote:

> Now that GCC13.1 is released is it ok to merge? Thanks!
>

Yes, I've been testing this locally, but I think it needs more work (sorry!)

Looking at it again, I'm not sure why I asked for the additional tests
because if they fail, it's a problem in libc, and there's nothing we can
actually do about it in libstdc++. We certainly do want std::expl(0.0L) to
return the same thing as std::exp(0.0L), but if it doesn't, we'll just have
a libstdc++ test failure caused by a bug in libc. But you wrote the test
now, so let's keep it. If we get failures for the test it will allow us to
inform the relevant libc maintainers that they have a bug.

Also, since you're contributing this under the DCO terms the new test
should not have the FSF copyright header, unless it's a derived work of an
existing test with that header (and in that case it should retain the dates
from the copied test). I don't actually bother putting the copyright and
license header on new tests these days. There's nothing in that test that
is novel or interesting, and I think it's arguably not useful or meaningful
to consider it copyrighted.

Finally, and most importantly, the new using-declarations in <cmath> are
not guarded by any autoconf macro. That will break targets without full C99
<math.h> support, e.g. djgpp declares acosf but not acosl, so the new
"using acosl;" would be a hard error as soon as <cmath> is included (and
might even prevent GCC building on that target). So I think we need a new
autoconf check for the existence of those functions. I'm in the process of
reworking the autoconf macros for <cmath> (due to PR 109818), which is why
I didn't address it for this patch yet.



>
> On Tue, Apr 18, 2023 at 6:48 PM Jonathan Wakely <jwakely@redhat.com>
> wrote:
> >
> > On Mon, 17 Apr 2023 at 09:11, Nathaniel Shead <nathanieloshead@gmail.com>
> wrote:
> > >
> > > Hi, just checking whether there were any issues with this patch?
> > > https://gcc.gnu.org/pipermail/gcc-patches/2023-February/612386.html
> > >
> > > Otherwise I assume it won't be in GCC13.
> >
> > That's right, it's too large and invasive a change to get into GCC 13
> > when only submitted in February, sorry. I'll merge it to trunk once
> > GCC 13.1 is released though.
> >
>
>

  reply	other threads:[~2023-05-17  9:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-20 11:23 [PATCH] " Nathaniel Shead
2023-02-20 11:30 ` Jonathan Wakely
2023-02-20 11:57   ` Nathaniel Shead
2023-02-20 12:08     ` Jonathan Wakely
2023-02-21 11:22       ` Nathaniel Shead
2023-04-17  8:10         ` [Ping][PATCH] " Nathaniel Shead
2023-04-18  8:47           ` Jonathan Wakely
2023-05-17  8:37             ` Nathaniel Shead
2023-05-17  9:05               ` Jonathan Wakely [this message]
2023-05-17  9:38                 ` Nathaniel Shead
2023-05-17 10:07                   ` Jonathan Wakely
2023-11-11  0:43                     ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACb0b4ncbJoLetZ3Ru_khcxOMJ-eykeEkkCH-zYHBW_uM5uwWA@mail.gmail.com \
    --to=jwakely@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@gcc.gnu.org \
    --cc=nathanieloshead@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).