From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6789 Path: news.gmane.org!not-for-mail From: Anders Magnusson Newsgroups: gmane.comp.compilers.pcc,gmane.linux.lib.musl.general Subject: Re: pcc i386 -fPIC compiler error on src/complex/catanf.c Date: Mon, 05 Jan 2015 11:31:11 +0100 Message-ID: <54AA67EF.8000104@ludd.ltu.se> References: <20150104055311.GA1776@newbook> <54A99386.7070504@ludd.ltu.se> <20150104210403.GA1801@newbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1420453944 12532 80.91.229.3 (5 Jan 2015 10:32:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2015 10:32:24 +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 Mon Jan 05 11:32:18 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 1Y84xO-0003S7-ID for gccp-pcc-list@gmane.org; Mon, 05 Jan 2015 11:32:18 +0100 Original-Received: from mail.ludd.ltu.se (localhost [127.0.0.1]) by mail.ludd.ltu.se (Postfix) with ESMTP id 2E22874505 for ; Mon, 5 Jan 2015 11:32:18 +0100 (CET) Original-Received: from mxi.ltu.se (mxi.ltu.se [130.240.42.23]) by mail.ludd.ltu.se (Postfix) with ESMTPS id 956A0741F6 for ; Mon, 5 Jan 2015 11:32:12 +0100 (CET) Original-Received: from macragge.local (h79-138-7-194.dynamic.se.alltele.net [79.138.7.194]) (authenticated bits=0) by mxi.ltu.se (8.14.4/8.14.4) with ESMTP id t05AVBib025635 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 5 Jan 2015 11:31:12 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: <20150104210403.GA1801@newbook> 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:3344 gmane.linux.lib.musl.general:6789 Archived-At: Isaac Dunham skrev den 2015-01-04 22:04: > On Sun, Jan 04, 2015 at 08:24:54PM +0100, Anders Magnusson wrote: >> Iain Hibbert skrev den 2015-01-04 18:47: >>> 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? >>> >> This assertion occurs because pass2 code expects a hidden argument to be >> present when calling a struct return function, but the hidden arg cannot be >> found in the argument list, and in this special case the hidden arg shall be >> in a register. >> >> I would like a preprocessed output from the above to diagnose further (which >> means to just add a -E to the line above). > Ok, will send. > Thanks, fixed now. Float complex struct return were not dealt with as it should in the PIC case. -- Ragge _______________________________________________ Pcc mailing list Pcc@lists.ludd.ltu.se https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc