From: bkoz Date: Sat, 13 Dec 2008 00:40:06 +0000 (+0000) Subject: 2008-12-12 Benjamin Kosnik X-Git-Tag: upstream/4.9.2~38459 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb9c483551c537ed1fec0e746f30cfd32a9cf9cb;p=platform%2Fupstream%2Flinaro-gcc.git 2008-12-12 Benjamin Kosnik * src/atomic.cc: Correct guards to match mutex.cc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142735 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 36149ef..a9b95b1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2008-12-12 Benjamin Kosnik + + * src/atomic.cc: Correct guards to match mutex.cc. + 2008-12-11 Benjamin Kosnik Richard Henderson diff --git a/libstdc++-v3/src/atomic.cc b/libstdc++-v3/src/atomic.cc index e2fe68f..9e6444d 100644 --- a/libstdc++-v3/src/atomic.cc +++ b/libstdc++-v3/src/atomic.cc @@ -36,7 +36,7 @@ namespace { -#ifdef _GLIBCXX_HAS_GTHREADS +#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) std::mutex atomic_mutex; #endif @@ -56,7 +56,7 @@ namespace std bool atomic_flag::test_and_set(memory_order) volatile { -#ifdef _GLIBCXX_HAS_GTHREADS +#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) lock_guard __lock(atomic_mutex); #endif bool result = _M_i; @@ -67,7 +67,7 @@ namespace std void atomic_flag::clear(memory_order) volatile { -#ifdef _GLIBCXX_HAS_GTHREADS +#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) lock_guard __lock(atomic_mutex); #endif _M_i = false;