aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2016-06-23 08:50:18 -0700
committerCary Coutant <ccoutant@gmail.com>2016-06-23 08:50:18 -0700
commit2ec060b71cc1cddb506d3a38475aadc184e25985 (patch)
tree42c4b22c1417a8abf5b3ad891482b1ab3863119b
parent17621150cc18737f0a80314cfd2f884b0c2e44b5 (diff)
downloadgdb-2ec060b71cc1cddb506d3a38475aadc184e25985.zip
gdb-2ec060b71cc1cddb506d3a38475aadc184e25985.tar.gz
gdb-2ec060b71cc1cddb506d3a38475aadc184e25985.tar.bz2
Fix compilation error in MSYS2 environment.
gold/ * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/gold-threads.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index e8980b3..012b682 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-23 Igor Kudrin <ikudrin@accesssoftek.com>
+
+ * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
+
2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/20283
diff --git a/gold/gold-threads.cc b/gold/gold-threads.cc
index ecb10f7..d4e2ac6 100644
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -100,11 +100,11 @@ Lock_impl_threads::Lock_impl_threads()
pthread_mutexattr_t attr;
int err = pthread_mutexattr_init(&attr);
if (err != 0)
- gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err));
+ gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
#ifdef PTHREAD_MUTEX_ADAPTIVE_NP
- err = pthread_mutextattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
+ err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
if (err != 0)
- gold_fatal(_("pthread_mutextattr_settype failed: %s"), strerror(err));
+ gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err));
#endif
err = pthread_mutex_init(&this->mutex_, &attr);