[PATCH] D149635: [libunwind] Use __builtin_alloca to avoid missing include
Louis Dionne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 05:55:17 PDT 2023
ldionne updated this revision to Diff 556568.
ldionne added a comment.
Rebase and poke CI.
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.556568.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230912/492263ec/attachment.bin>
More information about the llvm-commits
mailing list