aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++/guard.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/libsupc++/guard.cc')
-rw-r--r--libstdc++-v3/libsupc++/guard.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libstdc++-v3/libsupc++/guard.cc b/libstdc++-v3/libsupc++/guard.cc
index 61305f308e5..37dcd2267d6 100644
--- a/libstdc++-v3/libsupc++/guard.cc
+++ b/libstdc++-v3/libsupc++/guard.cc
@@ -255,6 +255,7 @@ namespace __cxxabiv1
extern "C"
int __cxa_guard_acquire (__guard *g)
{
+ google_potentially_blocking_region gpbr; // RAII
#ifdef __GTHREADS
// If the target can reorder loads, we need to insert a read memory
@@ -263,8 +264,6 @@ namespace __cxxabiv1
if (_GLIBCXX_GUARD_TEST_AND_ACQUIRE (g))
return 0;
- google_potentially_blocking_region gpbr; // RAII
-
# ifdef _GLIBCXX_USE_FUTEX
// If __atomic_* and futex syscall are supported, don't use any global
// mutex.
@@ -356,8 +355,6 @@ namespace __cxxabiv1
}
}
# endif
-# else
- google_potentially_blocking_region gpbr; // RAII
#endif
return acquire (g);