aboutsummaryrefslogtreecommitdiff
path: root/libitm
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2013-08-30 17:13:05 +0000
committerTorvald Riegel <torvald@gcc.gnu.org>2013-08-30 17:13:05 +0000
commit6fb471d812e3471ed23f23a4a73fdb70ebe2b256 (patch)
tree8970e2a1b2dc4c1dbfc9b9b13b03ec6673ee6b76 /libitm
parent0a6ea5c9c9fb6fdc077bedeba45446c809bb6850 (diff)
downloadgcc-6fb471d812e3471ed23f23a4a73fdb70ebe2b256.zip
gcc-6fb471d812e3471ed23f23a4a73fdb70ebe2b256.tar.gz
gcc-6fb471d812e3471ed23f23a4a73fdb70ebe2b256.tar.bz2
libitm: Fix wrong initialization order introduced with r202101.
* config/posix/rwlock.cc: Fix initialization order. From-SVN: r202116
Diffstat (limited to 'libitm')
-rw-r--r--libitm/ChangeLog4
-rw-r--r--libitm/config/posix/rwlock.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog
index 351b779..adf4230 100644
--- a/libitm/ChangeLog
+++ b/libitm/ChangeLog
@@ -1,5 +1,9 @@
2013-08-30 Torvald Riegel <triegel@redhat.com>
+ * config/posix/rwlock.cc: Fix initialization order.
+
+2013-08-30 Torvald Riegel <triegel@redhat.com>
+
* libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
(htm_fastpath): Assign an asm name.
* libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
diff --git a/libitm/config/posix/rwlock.cc b/libitm/config/posix/rwlock.cc
index 488e9c2..61b6ad9 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)