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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:7562f089a190953b8ef615b90b7b0520e812a930

commit r14-5220-g7562f089a190953b8ef615b90b7b0520e812a930
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Nov 6 11:31:40 2023 +0100

    libstdc++/112351 - deal with __gthread_once failure during locale init

    The following makes the C++98 locale init path follow the way the
    C++11 performs initialization.  This way we deal with pthread_once
    failing, falling back to non-threadsafe initialization which, given we
    initialize from the library, should be serialized by the dynamic
    loader already.

            PR libstdc++/112351
    libstdc++-v3/
            * src/c++98/locale.cc (locale::facet::_S_initialize_once):
            Check whether _S_c_locale is already initialized.
            (locale::facet::_S_get_c_locale): Always perform non-threadsafe
            init when threadsafe init failed.

Reply via email to