summaryrefslogtreecommitdiffstats
path: root/include/libc-internal.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2009-10-17 01:14:16 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-11-22 11:22:17 -0800
commit77f64585e21a9bff0404c720f7974304a3aef595 (patch)
tree8bdd23f3fd9e28f0731f7113f91901389f6a9861 /include/libc-internal.h
parent3fb926cffb7cbcae4f27703128006d4276112c70 (diff)
downloaduClibc-alpine-77f64585e21a9bff0404c720f7974304a3aef595.tar.bz2
uClibc-alpine-77f64585e21a9bff0404c720f7974304a3aef595.tar.xz
move extend_alloca macro to alloca.h
guard it by _LIBC. __MAX_ALLOCA_CUTOFF is not needed on target either Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'include/libc-internal.h')
-rw-r--r--include/libc-internal.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 33956d8b1..8809bc042 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -67,36 +67,6 @@ extern const char *__uclibc_progname attribute_hidden;
# endif /* IS_IN_libc */
-/* #include <alloca.h> */
-#include <bits/stackinfo.h>
-#if defined(_STACK_GROWS_DOWN)
-# define extend_alloca(buf, len, newlen) \
- (__typeof (buf)) ({ size_t __newlen = (newlen); \
- char *__newbuf = alloca (__newlen); \
- if (__newbuf + __newlen == (char *) buf) \
- len += __newlen; \
- else \
- len = __newlen; \
- __newbuf; })
-#elif defined(_STACK_GROWS_UP)
-# define extend_alloca(buf, len, newlen) \
- (__typeof (buf)) ({ size_t __newlen = (newlen); \
- char *__newbuf = alloca (__newlen); \
- char *__buf = (buf); \
- if (__buf + __newlen == __newbuf) \
- { \
- len += __newlen; \
- __newbuf = __buf; \
- } \
- else \
- len = __newlen; \
- __newbuf; })
-#else
-# warning unknown stack
-# define extend_alloca(buf, len, newlen) \
- alloca (((len) = (newlen)))
-#endif
-
#endif /* __ASSEMBLER__ */
#endif /* _LIBC_INTERNAL_H */