|
@@ -67,36 +67,6 @@ extern const char *__uclibc_progname attribute_hidden;
|
|
|
|
|
|
# endif /* IS_IN_libc */
|
|
# 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 /* __ASSEMBLER__ */
|
|
|
|
|
|
#endif /* _LIBC_INTERNAL_H */
|
|
#endif /* _LIBC_INTERNAL_H */
|