From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/436 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compilation error Date: Wed, 17 Aug 2011 16:47:24 +0200 Message-ID: <20110817144723.GT29562@port70.net> References: <6b8e6a08f65ec476283a3699a41451d7@smtp1.ispfr.net> <20110807193658.GA29562@port70.net> <20110807193431.GI132@brightrain.aerifal.cx> <20110807195006.GJ132@brightrain.aerifal.cx> <20110807220940.GC29562@port70.net> <20110807220025.GL132@brightrain.aerifal.cx> <20110808070817.GD29562@port70.net> <20110817103328.GR29562@port70.net> <20110817133913.GX132@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1313592461 31017 80.91.229.12 (17 Aug 2011 14:47:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2011 14:47:41 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-437-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 17 16:47:37 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QthP6-0008VF-VX for gllmg-musl@lo.gmane.org; Wed, 17 Aug 2011 16:47:37 +0200 Original-Received: (qmail 19738 invoked by uid 550); 17 Aug 2011 14:47:36 -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 19730 invoked from network); 17 Aug 2011 14:47:36 -0000 Content-Disposition: inline In-Reply-To: <20110817133913.GX132@brightrain.aerifal.cx> User-Agent: Mutt/1.5.20 (2009-06-14) Xref: news.gmane.org gmane.linux.lib.musl.general:436 Archived-At: * Rich Felker [2011-08-17 09:39:13 -0400]: > > (i'm not sure where alloca should go, pcc does not provide it) > > WTF? alloca cannot be implemented as a function. Does gcc provide an > alloca function? > i'm not sure how it should work but __alloca is defined in libpcc using simple asm trickery (modify stackpointer and the values on the stack and return) so in case of pcc CFLAGS+=-Dalloca=__alloca works tcc seems to implement alloca similarly in libtcc but they call it alloca so no define is needed glibc defines alloca as __builtin_alloca if gcc is used for compilation otherwise it just provides an extern declaration for it