3 #include <stdlib/alloca.h>
11 /* Now define the internal interfaces. */
12 extern void *__alloca (size_t __size
);
15 # define __alloca(size) __builtin_alloca (size)
18 extern int __libc_use_alloca (size_t size
) __attribute__ ((const));
19 extern int __libc_alloca_cutoff (size_t size
) __attribute__ ((const));
20 libc_hidden_proto (__libc_alloca_cutoff
)
22 #define __MAX_ALLOCA_CUTOFF 65536
24 #include <allocalim.h>
26 #if defined stackinfo_get_sp && defined stackinfo_sub_sp
27 # define alloca_account(size, avar) \
28 ({ void *old__ = stackinfo_get_sp (); \
29 void *m__ = __alloca (size); \
30 avar += stackinfo_sub_sp (old__); \
33 # define alloca_account(size, avar) \
34 ({ size_t s__ = (size); \
39 # endif /* !_ISOMAC */