summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/alloca.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index bd7895635..60720f617 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
+
+ * newlib/include/alloca.h: add undef alloca to work with xlc
+
2006-12-12 Joel Schopp <jschopp@austin.ibm.com>
* libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
diff --git a/newlib/libc/include/alloca.h b/newlib/libc/include/alloca.h
index 42439e370..2ea0fd9b3 100644
--- a/newlib/libc/include/alloca.h
+++ b/newlib/libc/include/alloca.h
@@ -10,6 +10,8 @@
#include "_ansi.h"
#include <sys/reent.h>
+#undef alloca
+
#ifdef __GNUC__
#define alloca(size) __builtin_alloca(size)
#else