aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-10-11 20:19:08 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-10-11 20:36:09 +0100
commit23c3cbaed36f6d2f3a7a64f6ebda69329723514b (patch)
treec7bc5a6a395c9f78dcade0b3510261c058986ddb /gcc/value-range.cc
parent9736a42e1fb8df30d72cf28594d9046bf50200c1 (diff)
downloadgcc-23c3cbaed36f6d2f3a7a64f6ebda69329723514b.zip
gcc-23c3cbaed36f6d2f3a7a64f6ebda69329723514b.tar.gz
gcc-23c3cbaed36f6d2f3a7a64f6ebda69329723514b.tar.bz2
libstdc++: Fix bootstrap for --disable-threads build [PR107221]
The __scoped_lock type should be used unqualified so that we always refer to pool::__scoped_lock, which might be the dummy fallback implementation. The __mutex and __scoped_lock types in <ext/concurrence.h> already work fine without __GTHREADS being defined, but that header isn't included at all unless _GLIBCXX_HOSTED != 0. The fallback implementation should be used for ! _GLIBCXX_HOSTED instead of for !defined __GTHREADS. libstdc++-v3/ChangeLog: PR bootstrap/107221 * libsupc++/eh_alloc.cc (pool): Change preprocessor condition for using __mutex from __GTHREADS to _GLIBCXX_HOSTED. (pool::allocate): Remove namespace qualification to use pool::__scoped_lock instead of __gnu_cxx::__scoped_lock.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions