projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f7df2
)
unconditonally define alloca as __builtin_alloca
author
Michael Forney
<mforney@mforney.org>
Tue, 19 Nov 2019 09:56:34 +0000
(
01:56
-0800)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 1 Jan 2020 20:07:11 +0000
(15:07 -0500)
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.
include/alloca.h
patch
|
blob
|
history
diff --git
a/include/alloca.h
b/include/alloca.h
index d2e6f1c681eebba9b016df23d2e2fb7a54f5942a..b8d183d144efad9bbe6aa94516bfe6ee6c5aa098 100644
(file)
--- a/
include/alloca.h
+++ b/
include/alloca.h
@@
-10,9
+10,7
@@
extern "C" {
void *alloca(size_t);
-#ifdef __GNUC__
#define alloca __builtin_alloca
-#endif
#ifdef __cplusplus
}