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

Sergei Barannikov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 10 10:16:30 PDT 2023


barannikov88 added inline comments.


================
Comment at: libunwind/src/config.h:16
 
+#include <alloca.h>
 #include <assert.h>
----------------
ldionne wrote:
> arichardson wrote:
> > compnerd wrote:
> > > mstorsjo wrote:
> > > > compnerd wrote:
> > > > > Is this available on MSVC?
> > > > It's not, as already commented above - it's not available in either MSVC or mingw toolchains.
> > > Should this be something that we put into a configuration then?  Or provide shims for?
> > Could we avoid the header and just use __builtin_alloca? Or is that code path used with compilers that don't support this built-in?
> +1, let's use `__builtin_alloca` if we can and drop the non-portable include.
+1, also thought about it. But is it available on MSVC? Or libunwind is not supposed to be compiled by MSVC?



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149635/new/

https://reviews.llvm.org/D149635



More information about the libcxx-commits mailing list