From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6785 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: Sun, 04 Jan 2015 20:24:54 +0100 Message-ID: <54A99386.7070504@ludd.ltu.se> References: <20150104055311.GA1776@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 1420399569 8326 80.91.229.3 (4 Jan 2015 19:26:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 19:26:09 +0000 (UTC) Cc: musl@lists.openwall.com, pcc@lists.ludd.ltu.se To: Iain Hibbert , Isaac Dunham Original-X-From: pcc-bounces+gccp-pcc-list=gmane.org@lists.ludd.ltu.se Sun Jan 04 20:26:02 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 1Y7qoL-0007es-J2 for gccp-pcc-list@gmane.org; Sun, 04 Jan 2015 20:26:01 +0100 Original-Received: from mail.ludd.ltu.se (localhost [127.0.0.1]) by mail.ludd.ltu.se (Postfix) with ESMTP id 4E5CB74454 for ; Sun, 4 Jan 2015 20:26:01 +0100 (CET) Original-Received: from mxi.ltu.se (mxi.ltu.se [130.240.42.23]) by mail.ludd.ltu.se (Postfix) with ESMTPS id 536EB74066 for ; Sun, 4 Jan 2015 20:25:55 +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 t04JOs56007592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 4 Jan 2015 20:24:54 +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: 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:3340 gmane.linux.lib.musl.general:6785 Archived-At: 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). -- Ragge _______________________________________________ Pcc mailing list Pcc@lists.ludd.ltu.se https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc