summaryrefslogtreecommitdiffstats
path: root/libitm/config
diff options
context:
space:
mode:
authortorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-30 17:13:05 +0000
committertorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-30 17:13:05 +0000
commit77fc1a5a2e2f6f24b85ad93325b0377f8e2b480e (patch)
tree8970e2a1b2dc4c1dbfc9b9b13b03ec6673ee6b76 /libitm/config
parentaee4c7da7845c20bcd0379c822a10ad925f62d68 (diff)
downloadppe42-gcc-77fc1a5a2e2f6f24b85ad93325b0377f8e2b480e.tar.gz
ppe42-gcc-77fc1a5a2e2f6f24b85ad93325b0377f8e2b480e.zip
libitm: Fix wrong initialization order introduced with r202101.
* config/posix/rwlock.cc: Fix initialization order. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202116 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/config')
-rw-r--r--libitm/config/posix/rwlock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libitm/config/posix/rwlock.cc b/libitm/config/posix/rwlock.cc
index 488e9c2374c..61b6ad9cbd1 100644
--- a/libitm/config/posix/rwlock.cc
+++ b/libitm/config/posix/rwlock.cc
@@ -30,11 +30,11 @@ namespace GTM HIDDEN {
// ??? Move this back to the header file when constexpr is implemented.
gtm_rwlock::gtm_rwlock()
- : mutex (PTHREAD_MUTEX_INITIALIZER),
+ : summary (0),
+ mutex (PTHREAD_MUTEX_INITIALIZER),
c_readers (PTHREAD_COND_INITIALIZER),
c_writers (PTHREAD_COND_INITIALIZER),
c_confirmed_writers (PTHREAD_COND_INITIALIZER),
- summary (0),
a_readers (0),
w_readers (0),
w_writers (0)
OpenPOWER on IntegriCloud