aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/cpu
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2006-09-12 17:48:45 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2006-09-12 17:48:45 +0000
commitc1a03f03117d454190e4f2e05cc1d68c3169132b (patch)
tree6db29cef50e6329534c0434e843f9be75b9833a3 /libstdc++-v3/config/cpu
parentfb8cbd3cb710a0e96d7b50e93f6dc37873c399f2 (diff)
downloadgcc-c1a03f03117d454190e4f2e05cc1d68c3169132b.zip
gcc-c1a03f03117d454190e4f2e05cc1d68c3169132b.tar.gz
gcc-c1a03f03117d454190e4f2e05cc1d68c3169132b.tar.bz2
eh_globals.cc: Remove __gnu_internal.
2006-09-12 Benjamin Kosnik <bkoz@redhat.com> * libsupc++/eh_globals.cc: Remove __gnu_internal. * config/io/basic_file_stdio.cc: Same. * config/abi/compatibility.h: Same. * config/cpu/generic/atomicity_mutex/atomicity.h: Same. * config/cpu/sh/atomicity.h: Same. From-SVN: r116899
Diffstat (limited to 'libstdc++-v3/config/cpu')
-rw-r--r--libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h10
-rw-r--r--libstdc++-v3/config/cpu/sh/atomicity.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h b/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h
index 5ecb465..e62c5ae 100644
--- a/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h
+++ b/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h
@@ -1,6 +1,6 @@
// Low-level functions for atomic operations: Generic version -*- C++ -*-
-// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005
+// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -31,10 +31,10 @@
#include <bits/atomicity.h>
#include <bits/concurrence.h>
-namespace __gnu_internal
+namespace
{
__glibcxx_mutex_define_initialized(atomic_mutex);
-} // namespace __gnu_internal
+} // anonymous namespace
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
@@ -42,11 +42,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
__attribute__ ((__unused__))
__exchange_and_add(volatile _Atomic_word* __mem, int __val)
{
- __glibcxx_mutex_lock(__gnu_internal::atomic_mutex);
+ __glibcxx_mutex_lock(atomic_mutex);
_Atomic_word __result;
__result = *__mem;
*__mem += __val;
- __glibcxx_mutex_unlock(__gnu_internal::atomic_mutex);
+ __glibcxx_mutex_unlock(atomic_mutex);
return __result;
}
diff --git a/libstdc++-v3/config/cpu/sh/atomicity.h b/libstdc++-v3/config/cpu/sh/atomicity.h
index 7a15beb..2294c5d 100644
--- a/libstdc++-v3/config/cpu/sh/atomicity.h
+++ b/libstdc++-v3/config/cpu/sh/atomicity.h
@@ -1,6 +1,6 @@
// Low-level functions for atomic operations: sh version -*- C++ -*-
-// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005
+// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -77,10 +77,10 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
#include <bits/atomicity.h>
#include <bits/concurrence.h>
-namespace __gnu_internal
+namespace
{
__glibcxx_mutex_define_initialized(atomic_mutex);
-} // namespace __gnu_internal
+} // anonymous namespace
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
@@ -88,11 +88,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
__attribute__ ((__unused__))
__exchange_and_add(volatile _Atomic_word* __mem, int __val)
{
- __glibcxx_mutex_lock(__gnu_internal::atomic_mutex);
+ __glibcxx_mutex_lock(atomic_mutex);
_Atomic_word __result;
__result = *__mem;
*__mem += __val;
- __glibcxx_mutex_unlock(__gnu_internal::atomic_mutex);
+ __glibcxx_mutex_unlock(atomic_mutex);
return __result;
}