[libcxx-commits] [PATCH] D149635: [libunwind] include alloca.h in config.h

Reagan via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 2 01:14:52 PDT 2023


xbjfk created this revision.
xbjfk added a reviewer: libunwind.
Herald added projects: libunwind, All.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libunwind.
xbjfk requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is required for picolibc. picolibc (possibly erroneously) only includes alloca.h from stdlib.h if __STRICT_ANSI__ is not defined - see https://github.com/picolibc/picolibc/blob/fe20d30008df0f3bb334a202bea344b8a08d32e7/newlib/libc/include/stdlib.h#L54 . This patch includes alloca.h by default.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149635

Files:
  libunwind/src/config.h


Index: libunwind/src/config.h
===================================================================
--- libunwind/src/config.h
+++ libunwind/src/config.h
@@ -13,6 +13,7 @@
 #ifndef LIBUNWIND_CONFIG_H
 #define LIBUNWIND_CONFIG_H
 
+#include <alloca.h>
 #include <assert.h>
 #include <stdio.h>
 #include <stdint.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149635.518649.patch
Type: text/x-patch
Size: 311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230502/a42161a3/attachment.bin>


More information about the libcxx-commits mailing list