From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: [GCC PATCH] powerpc64 musl libc support for IEEE binary128 long double
Date: Mon, 1 Jul 2019 09:17:50 +0200 [thread overview]
Message-ID: <20190701071750.GE21055@port70.net> (raw)
In-Reply-To: <e748d6c5-d063-f312-72e8-924d71fbf1aa@sholland.org>
* Samuel Holland <samuel@sholland.org> [2019-06-30 19:59:28 -0500]:
> >> -#define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
> >> +#define RS6000_DEFAULT_LONG_DOUBLE_SIZE (OPTION_MUSL ? 64 : 128)
> >
> > configuring 32bit ppc with 128bit long double is unsupported in musl
> >
> > i think reporting an error in config.gcc is better than trying to fix
> > it up later.
>
> I don't think that's possible, but I'm happy to be proven wrong. gcc accepts a
> single gcc_cv_target_ldbl128, which is applied everywhere with
> multilib/multiarch/--enable-targets=all. So even if --with-long-double-128 was
> made an error for powerpc-linux-musl, the logic still has to work for
> powerpc64-linux-musl, where it can't be an error.
>
> > OPTION_MUSL can handle -mmusl cflag, not just the configured libc, but
> > i think that's unreliable for other reasons anyway.
>
> That also has to work: --target=powerpc-linux-gnu --with-long-double-128, and
> then powerpc-linux-gnu-gcc -mmusl, will do the wrong thing unless it's fixed up
> at runtime.
what i'm saying is that this is not a supportable usage so there
is no point adding musl specific hacks to gcc internals which
wont work anyway.
if somebody uses -mmusl on a toolchain with default 128bit ldbl
then it's their responsibility to pass correct abi flags.
but it still wont work if the target libs like libgcc depend on
those abi flags: there will be no target libs with the right abi.
> > otherwise keep it with some easy to remember ordering for the extension
> > suffixes (e.g. alphabetical)
>
> Should there be a dash between "ieee128" and "sf"?
well you defined the extension as -foo, i prefer using _foo
not to confuse target triplet parsers, but since -sf is already
there -foo is probably better.
next prev parent reply other threads:[~2019-07-01 7:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-30 19:38 [PATCH] powerpc64: add IEEE binary128 long double support Samuel Holland
2019-06-30 19:38 ` [GCC PATCH] powerpc64 musl libc support for IEEE binary128 long double Samuel Holland
2019-06-30 22:29 ` Szabolcs Nagy
2019-07-01 0:59 ` Samuel Holland
2019-07-01 7:17 ` Szabolcs Nagy [this message]
2019-07-01 17:42 ` Rich Felker
2019-07-02 0:48 ` Samuel Holland
2019-06-30 22:02 ` [PATCH] powerpc64: add IEEE binary128 long double support Szabolcs Nagy
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=20190701071750.GE21055@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).