[libc-commits] [libc] [libc] Make alloca visible from stdlib.h (PR #241695)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Nov 12 13:51:10 PST 2026


================
@@ -1,4 +1,8 @@
 header: stdlib.h
+public_includes:
+  # glibc's <stdlib.h> makes alloca visible and a good deal of code
+  # counts on it.
+  - alloca.h
----------------
michaelrj-google wrote:

The comment about glibc should be removed, but I think just including `<alloca.h>` from `<stdlib.h>` is probably fine. The `<alloca.h>` header only defines `alloca` so redefining it in `<stdlib.h>` would be a bit redundant. A shared yaml would mean taking pretty much everything in `alloca.yaml` out.

https://github.com/llvm/llvm-project/pull/241695


More information about the libc-commits mailing list