mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Compilation error
Date: Wed, 17 Aug 2011 16:47:24 +0200	[thread overview]
Message-ID: <20110817144723.GT29562@port70.net> (raw)
In-Reply-To: <20110817133913.GX132@brightrain.aerifal.cx>

* Rich Felker <dalias@aerifal.cx> [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


  reply	other threads:[~2011-08-17 14:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-07 18:57 nicolas
2011-08-07 19:36 ` Szabolcs Nagy
2011-08-07 19:34   ` Rich Felker
2011-08-07 19:50     ` Rich Felker
2011-08-07 21:01       ` nicolas
2011-08-07 20:52         ` Rich Felker
2011-08-07 22:09       ` Szabolcs Nagy
2011-08-07 22:00         ` Rich Felker
2011-08-07 22:05           ` Rich Felker
2011-08-08  7:08           ` Szabolcs Nagy
2011-08-17 10:33             ` Szabolcs Nagy
2011-08-17 13:39               ` Rich Felker
2011-08-17 14:47                 ` Szabolcs Nagy [this message]
2011-08-17 14:59                   ` Szabolcs Nagy
2011-08-17 18:18                   ` Rich Felker
2011-08-08 13:03           ` Make nicolas
2011-08-08 20:55             ` Make Rich Felker
2011-08-08 20:56             ` Make Rich Felker
2011-08-09 19:10               ` Make nicolas
2011-08-09 19:29                 ` Make Rich Felker
2011-08-09 20:23                 ` Make Szabolcs Nagy
2011-08-10 19:19                   ` Make nicolas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110817144723.GT29562@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).