From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5824 Path: news.gmane.org!not-for-mail From: u-igbb@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: summary: [musl] compiling musl on x86_64 linux with pcc Date: Wed, 13 Aug 2014 13:53:14 +0200 Message-ID: <20140813115314.GJ5170@example.net> References: <20140813091843.GD5170@example.net> <20140813094910.GN22308@port70.net> <20140813102501.GG5170@example.net> <20140813112207.GH5170@example.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1407930828 18524 80.91.229.3 (13 Aug 2014 11:53:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 11:53:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5830-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 13 13:53:41 2014 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 1XHX7b-0001Kk-3D for gllmg-musl@plane.gmane.org; Wed, 13 Aug 2014 13:53:39 +0200 Original-Received: (qmail 3752 invoked by uid 550); 13 Aug 2014 11:53:38 -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 3744 invoked from network); 13 Aug 2014 11:53:38 -0000 X-T2-Spam-Status: No, hits=0.0 required=5.0 Received-SPF: none receiver=mailfe06.swip.net; client-ip=93.31.155.175; envelope-from=u-igbb@aetey.se Content-Disposition: inline In-Reply-To: <20140813112207.GH5170@example.net> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5824 Archived-At: On Wed, Aug 13, 2014 at 01:22:07PM +0200, u-igbb@aetey.se wrote: > src/math/asinhl.c, line 25: compiler error: Cannot generate code, node 0x5be9e0 op TEMP > error: XXXXXXXX/libexec/ccom terminated with status 1 > > src/math/asinhl.c: > 24: /* |x| >= 2 */ > 25: x = logl(2*x + 1/(sqrtl(x*x+1)+x)); Trial and error showed that it is enough to split the evaluation into two expressions like x = 2*x + 1/(sqrtl(x*x+1)+x); x = logl(x); to make the compiler happy. A similar change is necessary on another line in the same file too. Given the tweaks in arch/x86_64/syscall_arch.h // let all __syscallN() call __syscall() src/env/__init_tls.c // move #if conditional outside () src/math/asinhl.c // split log*() expressions the compilation went through. Rune