From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6783 Path: news.gmane.org!not-for-mail From: Iain Hibbert Newsgroups: gmane.comp.compilers.pcc,gmane.linux.lib.musl.general Subject: Re: pcc i386 -fPIC compiler error on src/complex/catanf.c Date: Sun, 4 Jan 2015 17:47:24 +0000 (GMT) Message-ID: References: <20150104055311.GA1776@newbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1420393671 19910 80.91.229.3 (4 Jan 2015 17:47:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 17:47:51 +0000 (UTC) Cc: musl@lists.openwall.com, pcc@lists.ludd.ltu.se To: Isaac Dunham Original-X-From: pcc-bounces+gccp-pcc-list=gmane.org@lists.ludd.ltu.se Sun Jan 04 18:47:44 2015 Return-path: Envelope-to: gccp-pcc-list@gmane.org Original-Received: from mail.ludd.ltu.se ([130.240.16.30]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y7pHE-0005n2-HW for gccp-pcc-list@gmane.org; Sun, 04 Jan 2015 18:47:44 +0100 Original-Received: from mail.ludd.ltu.se (localhost [127.0.0.1]) by mail.ludd.ltu.se (Postfix) with ESMTP id 2DB1D744E4 for ; Sun, 4 Jan 2015 18:47:44 +0100 (CET) Original-Received: from nospam.ludd.ltu.se (nospam.ludd.ltu.se [IPv6:2001:6b0:10:9820::16:32]) by mail.ludd.ltu.se (Postfix) with ESMTP id 1BB3574066 for ; Sun, 4 Jan 2015 18:47:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by nospam.ludd.ltu.se (Postfix) with ESMTP id AAD61537C7 for ; Sun, 4 Jan 2015 18:44:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ludd.ltu.se X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-9999 required=10.31 tests=[BAYES_00=-1.9] autolearn=ham Original-Received: from nospam.ludd.ltu.se ([127.0.0.1]) by localhost (nospam.ludd.ltu.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2yLC9qqV1mRC for ; Sun, 4 Jan 2015 18:44:03 +0100 (CET) Original-Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:c:538::196]) by nospam.ludd.ltu.se (Postfix) with ESMTPS for ; Sun, 4 Jan 2015 18:44:03 +0100 (CET) Original-Received: from mfilter5-d.gandi.net (mfilter5-d.gandi.net [217.70.178.132]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 10A3C172094; Sun, 4 Jan 2015 18:47:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter5-d.gandi.net Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter5-d.gandi.net (mfilter5-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id kMK-skURD7d4; Sun, 4 Jan 2015 18:47:31 +0100 (CET) X-Originating-IP: 31.68.130.35 Original-Received: from galant.ogmig.net (unknown [31.68.130.35]) (Authenticated sender: plunky@ogmig.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id EA0E817209C; Sun, 4 Jan 2015 18:47:30 +0100 (CET) Original-Received: by galant.ogmig.net (Postfix, from userid 1000) id 6F3F42600B7; Sun, 4 Jan 2015 17:47:24 +0000 (GMT) In-Reply-To: <20150104055311.GA1776@newbook> User-Agent: Alpine 2.11 (NEB 23 2013-08-11) X-BeenThere: pcc@lists.ludd.ltu.se X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussions about PCC List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , Original-Sender: pcc-bounces+gccp-pcc-list=gmane.org@lists.ludd.ltu.se Errors-To: pcc-bounces+gccp-pcc-list=gmane.org@lists.ludd.ltu.se Xref: news.gmane.org gmane.comp.compilers.pcc:3338 gmane.linux.lib.musl.general:6783 Archived-At: On Sat, 3 Jan 2015, Isaac Dunham wrote: > Hello, > With recent pcc (built from cvs since 1.1.0 was released), I've tried > building musl a few times, but the shared build consistently dies > on src/complex/catanf.c (command wrapped to avoid getting mangled > in the mail): > $ make > pcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard \ > -frounding-math -D_XOPEN_SOURCE=700 -I./arch/i386 -I./src/internal \ > -I./include -Os -pipe -fomit-frame-pointer -fno-unwind-tables \ > -fno-asynchronous-unwind-tables -Wa,--noexecstack -march=i486 \ > -Werror=implicit-function-declaration -Werror=implicit-int \ > -Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector \ > -fPIC -DSHARED -c -o src/complex/catanf.lo src/complex/catanf.c > src/complex/catanf.c, line 80: compiler error: bad STCALL hidden reg > error: /usr/libexec/ccom terminated with status 1 > Makefile:124: recipe for target 'src/complex/catanf.lo' failed > make: *** [src/complex/catanf.lo] Error 1 > > Line 80 is the closing bracket of _redupif(), which is fairly basic > floating point math. it will likely be something inside that function that does not show up until the function is being emitted. STCALL is something to do with structure arguments, which some kinds of floating point are big enough to be considered.. so I guess some kind of double or long double arguments? > I can't really isolate the error in question, I'm afraid. maybe if you post the function, somebody else would be able to? iain _______________________________________________ Pcc mailing list Pcc@lists.ludd.ltu.se https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc