GCC Bugzilla – Attachment 10085 Details for
Bug 19664
libstdc++ headers should have pop/push of the visibility around the declarations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
hidden visibility for __gnu_internal
p.20051027-vis (text/plain), 8.71 KB, created by
Benjamin Kosnik
on 2005-10-31 16:47:48 UTC
(
hide
)
Description:
hidden visibility for __gnu_internal
Filename:
MIME Type:
Creator:
Benjamin Kosnik
Created:
2005-10-31 16:47:48 UTC
Size:
8.71 KB
patch
obsolete
>2005-10-31 Benjamin Kosnik <bkoz@redhat.com> > > * src/mt_allocator.cc (__gnu_internal): Make hidden. > * src/pool_allocator.cc: Same. > * src/locale_init.cc (__gnu_internal): Same. > * src/locale.cc (__gnu_internal): Same. > * src/ios_init.cc (__gnu_internal): Same. > * src/globals_io.cc: Same. > * src/globals_locale.cc (__gnu_internal): Same. > * src/debug.cc (__gnu_internal): Same. > * src/ext-inst.cc (__gnu_internal): Same. > >Index: src/debug.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/debug.cc,v >retrieving revision 1.15 >diff -c -p -r1.15 debug.cc >*** src/debug.cc 9 Sep 2005 10:14:33 -0000 1.15 >--- src/debug.cc 28 Oct 2005 00:44:54 -0000 >*************** using namespace std; >*** 41,47 **** >--- 41,51 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > static __glibcxx_mutex_define_initialized(iterator_base_mutex); >+ >+ #pragma GCC visibility pop > } // namespace __gnu_internal > > namespace __gnu_debug >Index: src/ext-inst.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/ext-inst.cc,v >retrieving revision 1.8 >diff -c -p -r1.8 ext-inst.cc >*** src/ext-inst.cc 17 Aug 2005 02:14:21 -0000 1.8 >--- src/ext-inst.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 1,6 **** > // Explicit instantiation file. > >! // Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free > // software; you can redistribute it and/or modify it under the >--- 1,6 ---- > // Explicit instantiation file. > >! // Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free > // software; you can redistribute it and/or modify it under the >*************** >*** 36,42 **** >--- 36,46 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > const int min_len = __gnu_cxx::_Rope_constants::_S_max_rope_depth + 1; >+ >+ #pragma GCC visibility pop > } > > namespace __gnu_cxx >Index: src/globals_io.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/globals_io.cc,v >retrieving revision 1.3 >diff -c -p -r1.3 globals_io.cc >*** src/globals_io.cc 17 Aug 2005 02:14:22 -0000 1.3 >--- src/globals_io.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 1,4 **** >! // Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free > // software; you can redistribute it and/or modify it under the >--- 1,4 ---- >! // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free > // software; you can redistribute it and/or modify it under the >*************** namespace std >*** 76,81 **** >--- 76,83 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > using namespace std; > using namespace __gnu_cxx; > >*************** namespace __gnu_internal >*** 126,129 **** >--- 128,133 ---- > _GLIBCXX_mutex_address_init () > { __GTHREAD_MUTEX_INIT_FUNCTION (_GLIBCXX_mutex_address); } > #endif >+ >+ #pragma GCC visibility pop > } // namespace __gnu_internal >Index: src/globals_locale.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/globals_locale.cc,v >retrieving revision 1.4 >diff -c -p -r1.4 globals_locale.cc >*** src/globals_locale.cc 17 Aug 2005 02:14:22 -0000 1.4 >--- src/globals_locale.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 1,4 **** >! // Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free > // software; you can redistribute it and/or modify it under the >--- 1,4 ---- >! // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free > // software; you can redistribute it and/or modify it under the >*************** >*** 45,50 **** >--- 45,52 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > using namespace std; > > typedef char fake_locale_Impl[sizeof(locale::_Impl)] >*************** namespace __gnu_internal >*** 207,210 **** >--- 209,214 ---- > __attribute__ ((aligned(__alignof__(std::__timepunct_cache<wchar_t>)))); > fake_time_cache_w timepunct_cache_w; > #endif >+ >+ #pragma GCC visibility pop > } // namespace __gnu_internal >Index: src/ios_init.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/ios_init.cc,v >retrieving revision 1.8 >diff -c -p -r1.8 ios_init.cc >*** src/ios_init.cc 17 Aug 2005 02:14:22 -0000 1.8 >--- src/ios_init.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 1,6 **** > // Iostreams base classes -*- C++ -*- > >! // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 > // Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free >--- 1,6 ---- > // Iostreams base classes -*- C++ -*- > >! // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 > // Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free >*************** >*** 42,47 **** >--- 42,49 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > using namespace __gnu_cxx; > > // Extern declarations for global objects in src/globals.cc. >*************** namespace __gnu_internal >*** 62,67 **** >--- 64,71 ---- > extern stdio_filebuf<wchar_t> buf_wcin; > extern stdio_filebuf<wchar_t> buf_wcerr; > #endif >+ >+ #pragma GCC visibility pop > } // namespace __gnu_internal > > namespace std >Index: src/locale.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/locale.cc,v >retrieving revision 1.112 >diff -c -p -r1.112 locale.cc >*** src/locale.cc 11 Oct 2005 06:19:13 -0000 1.112 >--- src/locale.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 1,4 **** >! // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 > // Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free >--- 1,4 ---- >! // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 > // Free Software Foundation, Inc. > // > // This file is part of the GNU ISO C++ Library. This library is free >*************** >*** 37,44 **** >--- 37,48 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > // Mutex object for cache access > static __glibcxx_mutex_define_initialized(locale_cache_mutex); >+ >+ #pragma GCC visibility pop > } > > namespace std >Index: src/locale_init.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/locale_init.cc,v >retrieving revision 1.17 >diff -c -p -r1.17 locale_init.cc >*** src/locale_init.cc 9 Sep 2005 10:14:34 -0000 1.17 >--- src/locale_init.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 37,42 **** >--- 37,44 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > // Defined in globals.cc. > extern std::locale c_locale; > extern std::locale::_Impl c_locale_impl; >*************** namespace __gnu_internal >*** 91,96 **** >--- 93,100 ---- > > // Mutex object for locale initialization. > static __glibcxx_mutex_define_initialized(locale_mutex); >+ >+ #pragma GCC visibility pop > } // namespace __gnu_internal > > namespace std >Index: src/mt_allocator.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/mt_allocator.cc,v >retrieving revision 1.13 >diff -c -p -r1.13 mt_allocator.cc >*** src/mt_allocator.cc 12 Sep 2005 04:49:10 -0000 1.13 >--- src/mt_allocator.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 37,42 **** >--- 37,44 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > #ifdef __GTHREADS > struct __freelist > { >*************** namespace __gnu_internal >*** 74,79 **** >--- 76,83 ---- > freelist._M_thread_freelist = __tr; > } > #endif >+ >+ #pragma GCC visibility pop > } > > namespace __gnu_cxx >Index: src/pool_allocator.cc >=================================================================== >RCS file: /cvs/gcc/gcc/libstdc++-v3/src/pool_allocator.cc,v >retrieving revision 1.6 >diff -c -p -r1.6 pool_allocator.cc >*** src/pool_allocator.cc 9 Sep 2005 10:14:34 -0000 1.6 >--- src/pool_allocator.cc 28 Oct 2005 00:44:54 -0000 >*************** >*** 37,43 **** >--- 37,47 ---- > > namespace __gnu_internal > { >+ #pragma GCC visibility push(hidden) >+ > static __glibcxx_mutex_define_initialized(palloc_init_mutex); >+ >+ #pragma GCC visibility pop > } > > namespace __gnu_cxx
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19664
:
8908
|
8909
|
8934
| 10085 |
10094
|
10120
|
11912