https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28277

--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #21)
> (In reply to Andrew Pinski from comment #20)
> > src/c++11/snprintf_lite.cc (__throw_insufficient_space)
> 
> Another internal impl detail, but this one is not even visible to users. No
> declaration in headers, not exported from the shared lib. This one uses
> alloca for the same size as __throw_out_of_range_fmt + 104 bytes, but we've
> already done the first alloca, so it's (strlen(fmt) + 512) * 2 + 104.

There's also __concat_size_t in that file, but it only uses alloca for
3*sizeof(size_t), and that is unnecessary and should be replaced with
std::to_chars.

Reply via email to