X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gold%2Fgold-threads.cc;h=ebd9c1f2c4365d35184d69d359506daa1b80c689;hb=refs%2Fheads%2Ftizen_2.4_base;hp=38a1e1600da72968012809c4adb80963ec6c241a;hpb=6c288f11e6cd710a9924fd65ea588b3c4f529822;p=external%2Fbinutils.git diff --git a/gold/gold-threads.cc b/gold/gold-threads.cc index 38a1e16..ebd9c1f 100644 --- a/gold/gold-threads.cc +++ b/gold/gold-threads.cc @@ -1,6 +1,6 @@ // gold-threads.cc -- thread support for gold -// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -335,7 +335,10 @@ c_run_once(void) // Class Once. Once::Once() - : was_run_(false), was_run_lock_(0) + : was_run_(false) +#if defined(ENABLE_THREADS) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) + , was_run_lock_(0) +#endif { #ifndef ENABLE_THREADS this->once_ = NULL;