mailing list of musl libc
 help / color / mirror / code / Atom feed
From: James Gregurich <bayoubengal@mac.com>
To: musl@lists.openwall.com
Subject: Re: question float.h & powerpc
Date: Fri, 15 Nov 2013 16:30:22 -0600	[thread overview]
Message-ID: <5B5552F3-D771-4CF9-97D9-EBE861F386F5@mac.com> (raw)
In-Reply-To: <8EFD5B6F-00AE-4DBB-860D-C9A52966AA4D@mac.com>

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


After digging through llvm source code all day and finding

    if (getTriple().getOS() == llvm::Triple::FreeBSD ||
        getTriple().getVendor() == llvm::Triple::ELLCC) {
      LongDoubleWidth = LongDoubleAlign = 64;
      LongDoubleFormat = &llvm::APFloat::IEEEdouble;
    }


I believe the answer to my question is to build my own llvm 3.4 rather than using Apple’s clang which is based on llvm 3.3 and probably doesn’t have this code in it.




On Nov 15, 2013, at 1:47 PM, James Gregurich <bayoubengal@mac.com> wrote:

> thanks for the info.
> 
> I’m researching the clang docs right now to see how to do it. I don’t understand why the ellcc guys wouldn’t have addressed this already, but I haven’t asked them yet.
> 
> Fortunately, I doubt our codebase actually uses double-double, but the toolchain still needs to build correctly so I don’t want to hack it.
> 
> On Nov 15, 2013, at 1:42 PM, Rich Felker <dalias@aerifal.cx> wrote:
> 
>> GCC has options to easily switch the compiler to using 64-bit long
>> double on powerpc. I'm not sure about clang, though.
> 


[-- Attachment #2: Type: text/html, Size: 3858 bytes --]

  reply	other threads:[~2013-11-15 22:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 18:25 James Gregurich
2013-11-15 19:42 ` Rich Felker
2013-11-15 19:47   ` James Gregurich
2013-11-15 22:30     ` James Gregurich [this message]
2013-11-15 23:42       ` Szabolcs Nagy
2013-11-16  8:56         ` James Gregurich
2013-11-16 12:37           ` Szabolcs Nagy
2013-11-16 20:18             ` James Gregurich

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=5B5552F3-D771-4CF9-97D9-EBE861F386F5@mac.com \
    --to=bayoubengal@mac.com \
    --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).