From: Segher Boessenkool <segher@kernel.crashing.org>
To: Michael Meissner <meissner@linux.vnet.ibm.com>,
GCC Patches <gcc-patches@gcc.gnu.org>,
Joseph Myers <joseph@codesourcery.com>,
David Edelsohn <dje.gcc@gmail.com>,
Bill Schmidt <wschmidt@linux.vnet.ibm.com>
Subject: Re: [PATCH, RFC] Proposed PowerPC IEEE 128-bit floating point changes
Date: Mon, 24 Jul 2017 09:21:00 -0000 [thread overview]
Message-ID: <20170724092102.GV13471@gate.crashing.org> (raw)
In-Reply-To: <20170721191757.GA11603@ibm-tiger.the-meissners.org>
On Fri, Jul 21, 2017 at 03:17:57PM -0400, Michael Meissner wrote:
> The first change is to enable the C language to use _Float128 keyword (but not
> __float128) without having to use the -mfloat128 option on power7-power9
> systems. My question is in the TR that introduced _Float128, is there any
> expectation that outside of the built-in functions we already provide, that we
> need to provide runtime functions? Yes, glibc 2.26 will be coming along
> shortly, and it should provide most/all of the F128 functions, but distros
> won't pick this library up for some time.
>
> I would like to enable it, but I want to avoid the problem that we have with
> __float128 in that once the keyword is supported, it is assumed everything is
> supported. GCC and GLIBC run on different cycles (and different people work on
> it), and so you typically have to have GCC add support before GLIBC can use it.
>
> We've discovered that boost and libstdc++ both assume the full library support
> exists if the __float128 keyword is used. We will eventually need to tackle
> both of these libraries, but we need to the full GLIBC support (or libquadmath)
> to provide this functionality.
There isn't much we can do about libraries (or any other code) making
bad assumptions. Reducing the pain is the best we can do.
> The third change is to add cpu names 'power7f', 'power8f', and 'power9f' that
> enable the appropriate power<n> architecture but also does a -mfloat128. The
> motavation here is you cannot use either #pragma GCC target anywhere or the
> target attribute on the function with a target_clones attribute declaration.
Eww. What a horrible hack. Let's please find a sane way to handle this.
Float128 is not a feature only some power[789] variants have (and also it
could work on *all* targets), it also isn't some specific configuration
of the target (like LE is).
Segher
next prev parent reply other threads:[~2017-07-24 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 19:18 Michael Meissner
2017-07-24 9:21 ` Segher Boessenkool [this message]
2017-07-31 20:43 ` Joseph Myers
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=20170724092102.GV13471@gate.crashing.org \
--to=segher@kernel.crashing.org \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=joseph@codesourcery.com \
--cc=meissner@linux.vnet.ibm.com \
--cc=wschmidt@linux.vnet.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).