libstc++ uses __builtin_alloca in several places: config/local/gnu/codecvt_members.cc include/ext/codecvt_specializations.h include/ext/vstring.cc include/bits/locale_facets.tcc include/bits/ostream.tcc include/bits/fstream.cc include/std/std_valarray.h src/valarray-inst.cc
These have data-dependent sizes with no obvious limit, which does not mix well with threads and small stacks. -- Summary: __builtin_alloca with no limit in libstdc++ Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28277