summaryrefslogtreecommitdiff
path: root/include/alloca.h
AgeCommit message (Collapse)AuthorLines
2020-01-01unconditonally define alloca as __builtin_allocaMichael Forney-2/+0
This enables alternative compilers, which may not define __GNUC__, to implement alloca, which is still fairly widely used. This is similar to how stdarg.h already works in musl; compilers must implement __builtin_va_arg, there is no fallback definition.
2012-04-09alloca cannot be a function. #define it to the gcc builtin if possibleRich Felker-0/+4
gcc makes this mapping by default anyway, but it will be disabled by -fno-builtin (and presumably by -std=c99 or similar). for the main program the error will be reported by the linker, and the issue can easily be fixed, but for dynamic-loaded so files, the error cannot be detected until dlopen time, at which point it has become very obscure.
2011-11-10fix all missing instances of __cplusplus checks/extern "C" in headersRich Felker-0/+8
patch by Arvid Picciani (aep)
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+9