From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7439 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: ppc64 ABI Date: Sun, 19 Apr 2015 15:40:20 +0100 Message-ID: References: <20150419135418.GP2875@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1429454434 32108 80.91.229.3 (19 Apr 2015 14:40:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2015 14:40:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7452-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 19 16:40:34 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YjqOg-0002NE-1s for gllmg-musl@m.gmane.org; Sun, 19 Apr 2015 16:40:34 +0200 Original-Received: (qmail 1334 invoked by uid 550); 19 Apr 2015 14:40:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32754 invoked from network); 19 Apr 2015 14:40:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TSXD4hCy/8mGxq2IEjKoMR/8TKC9KSMctUB/kX1kKw0=; b=ljFAnFio8tnWTPWS6UEZJoRwM725rgusOlswR2ihNJqH/A5nepUf+TVFlBvlYaBaW/ 5lZmfzSL3W9K6Bzj8p+1Tm8cYvXPImbbSptkulfYA5aRhfY9YsCl1/OyCV2Vrqj0q1N7 EGXq8SkcuGb6G7YUzTUf1EtpXu5J4ugvmD5DE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=TSXD4hCy/8mGxq2IEjKoMR/8TKC9KSMctUB/kX1kKw0=; b=iKU6wJQoVdx4SIT4jcJi11Ys3rqgPYruRar1PvIoFAwQtZrUUCxwZhjRtv0XiN9kE7 bFe8j2aY6J0yAclQjtZguqcsxHxKcIPWHI0pEo4jBON51DqmPYZhwb3Tzkl4pg3RGrhb LeICF31oy4pw/IbQsCoBLzRKlcGGAVjYhlub/Z/PnpTonEG5JO/xKsV9Fca6rnZjliPo 0QON8FYyDvCOMnpGzlx8J87ZvK41yuC8uqbimTIn2XWOHoeyUFA1lvY2vdJeQhJF5ekW OT5VpYPh1qRa/um8gIx6snFqLuJNEeStqGjY0vz4aTpHjPEStwIvXten3iCpGWOouT8n jC+Q== X-Gm-Message-State: ALoCoQn+uxZyP2sjrWf34j79wrKcmekNeo7Tgcy8yF7+cJPZRSdd0UtJFxRlv7skA3pn6cJM4WNi X-Received: by 10.180.97.7 with SMTP id dw7mr17748469wib.74.1429454420207; Sun, 19 Apr 2015 07:40:20 -0700 (PDT) In-Reply-To: <20150419135418.GP2875@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:7439 Archived-At: On 19 April 2015 at 14:54, Szabolcs Nagy wrote: > * Justin Cormack [2015-04-19 12:44:15 +0100]: >> I am looking at doing a ppc64 port, and after some discussion on irc >> last night wondering which ABI to port to. >> >> ppc64 has two ABIs: >> v1: as documented here >> v2, usually known as powerpc64le, helpfully. It is not little endian > ... >> >> Both have 16 byte long double oddness. > > printf/scanf decimal conversion and libm are broken with ibm128 > > if the toolchain could be configured to use ieee128 then that works > (i see -mabi=ieeelongdouble compiler option in gcc, it seems 32bit > powerpc sysv abi used to require ieee128 long double, but that was > not implemented for aix and darwin so i'm not sure who uses it) > > 64bit long double works too and that's what musl uses on 32bit powerpc > > (i dont know how much code breaks if we change long double: > i think on typical desktop/server it does not matter, but if you > want to run some ppc optimized fortran code then it might..) The Fedora ppc64 gcc accepts -mlong-double-64 it turns out. Justin