[PATCH] make alloca.h work with xlc

jschopp jschopp@austin.ibm.com
Wed Dec 13 23:06:00 GMT 2006


The xlc compiler defines alloca internally.  Thus when it encounters the definition in 
alloca.h it isn't very happy.  The simple way to fix this is to add an undef alloca 
unconditionally before defining it.  After making the fix I checked and other libc headers 
do this regularly as well.

Unlike most of my patches this one isn't cell spu specific, but is trivial enough it 
shouldn't raise any objections.

2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
         * newlib/include/alloca.h: add undef alloca to work with xlc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: undef-alloca.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20061213/f639d405/attachment.bin>


More information about the Newlib mailing list