powerpc & double-double size

I’m going through the documentation to look for how to do this, but I’m having a harding time finding the useful info. How do you configure the clang/llvm build to use a ‘double double’ size of 8 bytes (as opposed to the excepted 16) on powerPC?

gcc has a configure parameter of '–with-long-double-64’ to do this, but I don’t see that flag in the llvm configure script.

-James

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.

From: "James Gregurich" <bayoubengal@mac.com>
To: "cfe-dev@cs.uiuc.edu Developers" <cfe-dev@cs.uiuc.edu>
Sent: Friday, November 15, 2013 4:29:40 PM
Subject: Re: [cfe-dev] powerpc & double-double size

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.

Yes. Are you in fact targeting one of those platforms? (Do we need to add something else to the list?)

-Hal

--
Yes. Are you in fact targeting one of those platforms? (Do we need to add something else to the list?)

-Hal

Yes. I am building ellcc. When it was building musl for ppc and arm, the configure test for long double size was failing. I won't be able to find out if that fixes the problem until next week.