From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Michael Meissner <meissner@linux.ibm.com>,
Jonathan Wakely <jwakely@redhat.com>,
"libstdc++" <libstdc++@gcc.gnu.org>,
gcc-patches <gcc-patches@gcc.gnu.org>,
Bill Schmidt <wschmidt@linux.ibm.com>,
David Edelsohn <dje.gcc@gmail.com>,
Segher Boessenkool <segher@kernel.crashing.org>,
Peter Berner <bergner@linux.ibm.com>
Subject: Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format
Date: Tue, 1 Dec 2020 21:41:19 +0000 [thread overview]
Message-ID: <CAH6eHdSqsZ1bidGnv_9Pkzruh9e_zyvB3PWkG0beNU=F=vkD0A@mail.gmail.com> (raw)
In-Reply-To: <CAH6eHdRHkZTMuZtK=mOrL6Oh7M7gjA+MeT769EyEwm9AeMwr7Q@mail.gmail.com>
On Tue, 1 Dec 2020 at 21:10, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
> On Tue, 1 Dec 2020 at 19:13, Michael Meissner via Libstdc++
> <libstdc++@gcc.gnu.org> wrote:
> >
> > On Tue, Dec 01, 2020 at 04:04:30PM +0000, Jonathan Wakely wrote:
> > > On 01/12/20 15:10 +0000, Jonathan Wakely wrote:
> > > >On 30/11/20 16:30 -0500, Michael Meissner via Libstdc++ wrote:
> > > >>Jonathan, could you send a fresh set of patches (or at least replacements)? I
> > > >>tried installing the patches on a master branch I checked out this morning, and
> > > >>I got two rejects:
> > > >
> > > >I don't understand why those chunks failed, but I'll rebase and send a
> > > >new patch ASAP.
> > >
> > > Here's the rebased patch, with regenerated autoconf files and a fix
> > > for the <ext/numeric_limits.h> header. I'd changed it since sending
> > > the previous patch, and broke the "there's more than one long double"
> > > case (i.e. the _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT case).
> >
> > Unfortunately this patch DOES NOT work at all.
> >
> > If I build a compiler with the configure option:
> > --with-long-double-format=ieee
> >
> > And I compile this simple program:
> >
> > #include <iostream>
> >
> > int main(int argc, char *argv[], char *envp[])
> > {
> > std::cout << "Hello World!\n";
> > return 0;
> > }
> >
> > I get all of these errors:
>
> It works fine for me (see below). I think your symptoms are due to
> using a glibc that doesn't support the new long double, and so
> libstdc++ support for it is also disabled. You need at least glibc
> 2.32 for the libstdc++ changes to be enabled.
I should improve the failure mode (maybe refuse to compile anything
using the C++ library headers if __LONG_DOUBLE_IEEE128__ is defined
and __ieee128 support was disabled due to the missing glibc
dependency) but that hasn't been a priority. Making the C++ library
support __ieee128 on a machine that doesn't even have libc support for
it isn't possible, so I didn't spend time on that use case. It doesn't
work, and it's not going to work.
next prev parent reply other threads:[~2020-12-01 21:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-11 21:50 Jonathan Wakely
2020-11-30 21:30 ` Michael Meissner
2020-12-01 15:10 ` Jonathan Wakely
2020-12-01 16:04 ` Jonathan Wakely
2020-12-01 19:10 ` Michael Meissner
2020-12-01 21:10 ` Jonathan Wakely
2020-12-01 21:41 ` Jonathan Wakely [this message]
2020-12-01 22:25 ` Michael Meissner
2020-12-01 22:36 ` Jonathan Wakely
2020-12-01 23:24 ` Michael Meissner
2020-12-02 15:14 ` Michael Meissner
2020-12-01 23:32 ` Michael Meissner
2020-12-03 23:07 ` Tulio Magno Quites Machado Filho
2020-12-04 0:35 ` Jonathan Wakely
2020-12-10 16:14 ` Jonathan Wakely
2020-12-10 17:14 ` Peter Bergner
2020-12-10 17:27 ` Jonathan Wakely
2020-12-15 0:57 ` Tulio Magno Quites Machado Filho
2020-11-30 23:29 ` Segher Boessenkool
2020-12-01 15:04 ` 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='CAH6eHdSqsZ1bidGnv_9Pkzruh9e_zyvB3PWkG0beNU=F=vkD0A@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=bergner@linux.ibm.com \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jwakely@redhat.com \
--cc=libstdc++@gcc.gnu.org \
--cc=meissner@linux.ibm.com \
--cc=segher@kernel.crashing.org \
--cc=wschmidt@linux.ibm.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).