Date: Wed, 17 Aug 2011 16:47:24 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: Compilation error * Rich Felker <dalias@...ifal.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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.