Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gcc13 for openSUSE:Factory checked in at 2023-11-09 21:34:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gcc13 (Old) and /work/SRC/openSUSE:Factory/.gcc13.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gcc13" Thu Nov 9 21:34:33 2023 rev:17 rq:1124004 version:13.2.1+git7813 Changes: -------- --- /work/SRC/openSUSE:Factory/gcc13/gcc13.changes 2023-09-28 00:32:59.504908051 +0200 +++ /work/SRC/openSUSE:Factory/.gcc13.new.17445/gcc13.changes 2023-11-09 21:34:52.747737384 +0100 @@ -1,0 +2,6 @@ +Tue Nov 7 12:57:49 UTC 2023 - Richard Biener <[email protected]> + +- Add gcc13-bsc1216664.patch, works around SAP ASE DB crash during + C++ standard library initialization. [bsc#1216664] + +------------------------------------------------------------------- New: ---- gcc13-bsc1216664.patch BETA DEBUG BEGIN: New: - Add gcc13-bsc1216664.patch, works around SAP ASE DB crash during C++ standard library initialization. [bsc#1216664] BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cross-aarch64-gcc13-bootstrap.spec ++++++ --- /var/tmp/diff_new_pack.8PuiRS/_old 2023-11-09 21:34:54.339796052 +0100 +++ /var/tmp/diff_new_pack.8PuiRS/_new 2023-11-09 21:34:54.343796199 +0100 @@ -135,6 +135,7 @@ Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch21: gdcflags.patch Patch22: pr111411.patch +Patch23: gcc13-bsc1216664.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch # Some patches taken from Debian @@ -355,6 +356,7 @@ %endif %patch21 -p1 %patch22 -p1 +%patch23 -p1 %patch51 %patch60 -p1 %patch61 -p1 cross-aarch64-gcc13.spec: same change cross-amdgcn-gcc13.spec: same change cross-arm-gcc13.spec: same change cross-arm-none-gcc13-bootstrap.spec: same change cross-arm-none-gcc13.spec: same change cross-avr-gcc13-bootstrap.spec: same change cross-avr-gcc13.spec: same change cross-bpf-gcc13.spec: same change cross-epiphany-gcc13-bootstrap.spec: same change cross-epiphany-gcc13.spec: same change cross-hppa-gcc13-bootstrap.spec: same change cross-hppa-gcc13.spec: same change cross-m68k-gcc13.spec: same change cross-mips-gcc13.spec: same change cross-nvptx-gcc13.spec: same change cross-ppc64-gcc13.spec: same change cross-ppc64le-gcc13-bootstrap.spec: same change cross-ppc64le-gcc13.spec: same change cross-pru-gcc13-bootstrap.spec: same change cross-pru-gcc13.spec: same change cross-riscv64-elf-gcc13-bootstrap.spec: same change cross-riscv64-elf-gcc13.spec: same change cross-riscv64-gcc13-bootstrap.spec: same change cross-riscv64-gcc13.spec: same change cross-rx-gcc13-bootstrap.spec: same change cross-rx-gcc13.spec: same change cross-s390x-gcc13-bootstrap.spec: same change cross-s390x-gcc13.spec: same change cross-sparc-gcc13.spec: same change cross-sparc64-gcc13.spec: same change cross-x86_64-gcc13.spec: same change gcc13-testresults.spec: same change ++++++ gcc13.spec ++++++ --- /var/tmp/diff_new_pack.8PuiRS/_old 2023-11-09 21:34:55.355833494 +0100 +++ /var/tmp/diff_new_pack.8PuiRS/_new 2023-11-09 21:34:55.355833494 +0100 @@ -382,6 +382,7 @@ Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch21: gdcflags.patch Patch22: pr111411.patch +Patch23: gcc13-bsc1216664.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch # Some patches taken from Debian @@ -2360,6 +2361,7 @@ %endif %patch21 -p1 %patch22 -p1 +%patch23 -p1 %patch51 %patch60 -p1 %patch61 -p1 ++++++ gcc.spec.in ++++++ --- /var/tmp/diff_new_pack.8PuiRS/_old 2023-11-09 21:34:55.523839684 +0100 +++ /var/tmp/diff_new_pack.8PuiRS/_new 2023-11-09 21:34:55.527839833 +0100 @@ -387,6 +387,7 @@ Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch21: gdcflags.patch Patch22: pr111411.patch +Patch23: gcc13-bsc1216664.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch # Some patches taken from Debian @@ -1352,6 +1353,7 @@ %endif %patch21 -p1 %patch22 -p1 +%patch23 -p1 %patch51 %patch60 -p1 %patch61 -p1 ++++++ gcc13-bsc1216664.patch ++++++ >From 7562f089a190953b8ef615b90b7b0520e812a930 Mon Sep 17 00:00:00 2001 From: Richard Biener <[email protected]> Date: Mon, 6 Nov 2023 11:31:40 +0100 Subject: [PATCH] libstdc++/112351 - deal with __gthread_once failure during locale init To: [email protected] 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. --- libstdc++-v3/src/c++98/locale.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/src/c++98/locale.cc b/libstdc++-v3/src/c++98/locale.cc index d308140bab7..1ef0c394cd7 100644 --- a/libstdc++-v3/src/c++98/locale.cc +++ b/libstdc++-v3/src/c++98/locale.cc @@ -206,6 +206,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION void locale::facet::_S_initialize_once() { + // Need to check this because we could get called once from + // _S_get_c_locale() when the program is single-threaded, and then again + // (via __gthread_once) when it's multi-threaded. + if (_S_c_locale) + return; + // Initialize the underlying locale model. _S_create_c_locale(_S_c_locale, _S_c_name); } @@ -216,12 +222,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #ifdef __GTHREADS if (__gthread_active_p()) __gthread_once(&_S_once, _S_initialize_once); - else #endif - { - if (!_S_c_locale) - _S_initialize_once(); - } + if (__builtin_expect (!_S_c_locale, 0)) + _S_initialize_once(); return _S_c_locale; } -- 2.35.3
