summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
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/libsupc++
parentfb8cbd3cb710a0e96d7b50e93f6dc37873c399f2 (diff)
downloadgcc-c1a03f03117d454190e4f2e05cc1d68c3169132b.tar.gz
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/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/eh_globals.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/libstdc++-v3/libsupc++/eh_globals.cc b/libstdc++-v3/libsupc++/eh_globals.cc
index 08492e6054e..424e375696e 100644
--- a/libstdc++-v3/libsupc++/eh_globals.cc
+++ b/libstdc++-v3/libsupc++/eh_globals.cc
@@ -49,26 +49,23 @@ using namespace __cxxabiv1;
#if _GLIBCXX_HAVE_TLS
-namespace __gnu_internal
+namespace
{
- using namespace abi;
- using namespace std;
-
- __cxa_eh_globals*
+ abi::__cxa_eh_globals*
get_global() throw()
{
- static __thread __cxa_eh_globals global;
+ static __thread abi::__cxa_eh_globals global;
return &global;
}
-}
+} // anonymous namespace
extern "C" __cxa_eh_globals*
__cxxabiv1::__cxa_get_globals_fast() throw()
-{ return __gnu_internal::get_global(); }
+{ return get_global(); }
extern "C" __cxa_eh_globals*
__cxxabiv1::__cxa_get_globals() throw()
-{ return __gnu_internal::get_global(); }
+{ return get_global(); }
#else