[libcxx-commits] [PATCH] D149635: [libunwind] Use __builtin_alloca to avoid missing include
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 11 14:38:31 PDT 2023
ldionne updated this revision to Diff 556486.
ldionne retitled this revision from "[libunwind] include alloca.h in config.h" to "[libunwind] Use __builtin_alloca to avoid missing include".
ldionne added a comment.
Use __builtin_alloca
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149635/new/
https://reviews.llvm.org/D149635
Files:
libunwind/src/config.h
Index: libunwind/src/config.h
===================================================================
--- libunwind/src/config.h
+++ libunwind/src/config.h
@@ -127,7 +127,7 @@
#if defined(_LIBUNWIND_REMEMBER_STACK_ALLOC) || defined(__APPLE__) || \
defined(__linux__) || defined(__ANDROID__) || defined(__MINGW32__) || \
defined(_LIBUNWIND_IS_BAREMETAL)
-#define _LIBUNWIND_REMEMBER_ALLOC(_size) alloca(_size)
+#define _LIBUNWIND_REMEMBER_ALLOC(_size) __builtin_alloca(_size)
#define _LIBUNWIND_REMEMBER_FREE(_ptr) \
do { \
} while (0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149635.556486.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230911/89cdc0d7/attachment.bin>
More information about the libcxx-commits
mailing list