[libcxx-commits] [PATCH] D149635: [libunwind] include alloca.h in	config.h
    Louis Dionne via Phabricator via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Wed May 10 09:40:12 PDT 2023
    
    
  
ldionne added inline comments.
================
Comment at: libunwind/src/config.h:16
 
+#include <alloca.h>
 #include <assert.h>
----------------
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.
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