https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101749
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> --- > It should. Before that change there is a block scope variable that needs > initialization and so that it is initialized just once (by the first thread > calling that function and other threads waiting until the initialization > completes) in a thread-safe way, it uses __cxa_guard*. > With the patch, there is no such variable, SIGSTKSZ * 4 is evaluated by each > thread as many times as the function is called. Thanks for the full explanation. So it seems it's fine on master, should I backport the fix to release branches? Or is your fix g:d9f462fb372fb02da032cefd6b091d7582c425ae sufficient?