|
Message-id: <77116808-54C9-4D8F-8F73-FFB0E74D2718@mac.com> Date: Sat, 16 Nov 2013 00:56:49 -0800 From: James Gregurich <bayoubengal@....com> To: "musl@...ts.openwall.com" <musl@...ts.openwall.com> Cc: "musl@...ts.openwall.com" <musl@...ts.openwall.com> Subject: Re: question float.h & powerpc Sent from my iPad > On Nov 15, 2013, at 3:42 PM, Szabolcs Nagy <nsz@...t70.net> wrote: > > * James Gregurich <bayoubengal@....com> [2013-11-15 16:30:22 -0600]: >> 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. > > seems so, but this is ugly > > almost surely there is some configuration method for llvm > and that should have been used to select this option (and > then have different config on freebsd and ellcc) > > i think it's wrong of llvm and clang to try to know about > all the users and toolchains of their code and hard-wire > special cases for them (i've seen hacks like that for > emscripten in clang too) I dug deep for one and finally started going through the source code to find an answer. That is all I found. He probably should have made the triplet based on musl rather than ell cl..it he changes his c library to one that can handle the double doubles, then he has to change llvm again.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.