From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4235 Path: news.gmane.org!not-for-mail From: James Gregurich Newsgroups: gmane.linux.lib.musl.general Subject: Re: question float.h & powerpc Date: Sat, 16 Nov 2013 00:56:49 -0800 Message-ID: <77116808-54C9-4D8F-8F73-FFB0E74D2718@mac.com> References: <407BD2A5-E4A4-48A6-832E-C6F9479466D1@mac.com> <20131115194225.GD24286@brightrain.aerifal.cx> <8EFD5B6F-00AE-4DBB-860D-C9A52966AA4D@mac.com> <5B5552F3-D771-4CF9-97D9-EBE861F386F5@mac.com> <20131115234241.GU1685@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384592229 29361 80.91.229.3 (16 Nov 2013 08:57:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 08:57:09 +0000 (UTC) Cc: "musl@lists.openwall.com" To: "musl@lists.openwall.com" Original-X-From: musl-return-4239-gllmg-musl=m.gmane.org@lists.openwall.com Sat Nov 16 09:57:15 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Vhbgo-0001Hy-3k for gllmg-musl@plane.gmane.org; Sat, 16 Nov 2013 09:57:14 +0100 Original-Received: (qmail 30434 invoked by uid 550); 16 Nov 2013 08:57:12 -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 30423 invoked from network); 16 Nov 2013 08:57:12 -0000 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.14,0.0.0000 definitions=2013-11-16_01:2013-11-15,2013-11-16,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1311160010 In-reply-to: <20131115234241.GU1685@port70.net> X-Mailer: iPad Mail (11B511) Xref: news.gmane.org gmane.linux.lib.musl.general:4235 Archived-At: Sent from my iPad > On Nov 15, 2013, at 3:42 PM, Szabolcs Nagy wrote: >=20 > * James Gregurich [2013-11-15 16:30:22 -0600]: >> After digging through llvm source code all day and finding >>=20 >> if (getTriple().getOS() =3D=3D llvm::Triple::FreeBSD || >> getTriple().getVendor() =3D=3D llvm::Triple::ELLCC) { >> LongDoubleWidth =3D LongDoubleAlign =3D 64; >> LongDoubleFormat =3D &llvm::APFloat::IEEEdouble; >> } >>=20 >>=20 >> I believe the answer to my question is to build my own llvm 3.4 rather th= an using Apple?s clang which is based on llvm 3.3 and probably doesn?t have t= his code in it. >=20 > seems so, but this is ugly >=20 > 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) >=20 > 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 fin= d an answer. That is all I found. He probably should have made the triplet based on musl rather than ell cl..i= t he changes his c library to one that can handle the double doubles, then h= e has to change llvm again.=