View | Details | Raw Unified | Return to bug 19664 | Differences between
and this patch

Collapse All | Expand All

(-)include/bits/c++config (-3 / +6 lines)
Lines 40-45 Link Here
40
// The current version of the C++ library in compressed ISO date format.
40
// The current version of the C++ library in compressed ISO date format.
41
#define __GLIBCXX__ 
41
#define __GLIBCXX__ 
42
42
43
// Macros for namespace visibility.
44
#define _GLIBCXX_VISIBILITY(V) __attribute__ ((__visibility__ (#V)))
45
43
// Macros for controlling various namespace association schemes and modes.
46
// Macros for controlling various namespace association schemes and modes.
44
#ifdef _GLIBCXX_DEBUG
47
#ifdef _GLIBCXX_DEBUG
45
# define _GLIBCXX_NAMESPACE_ASSOCIATION_DEBUG 1
48
# define _GLIBCXX_NAMESPACE_ASSOCIATION_DEBUG 1
Lines 53-67 Link Here
53
// _GLIBCXX_BEGIN_NESTED_NAMESPACE
56
// _GLIBCXX_BEGIN_NESTED_NAMESPACE
54
// _GLIBCXX_END_NESTED_NAMESPACE
57
// _GLIBCXX_END_NESTED_NAMESPACE
55
#if _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION
58
#if _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION
56
# define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y) namespace X { namespace Y {
59
# define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y)  namespace X { namespace Y _GLIBCXX_VISIBILITY(default) {
57
# define _GLIBCXX_END_NESTED_NAMESPACE } }
60
# define _GLIBCXX_END_NESTED_NAMESPACE } }
58
# define _GLIBCXX_BEGIN_NAMESPACE(X) _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, _6)
61
# define _GLIBCXX_BEGIN_NAMESPACE(X) _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, _6)
59
# define _GLIBCXX_END_NAMESPACE _GLIBCXX_END_NESTED_NAMESPACE
62
# define _GLIBCXX_END_NAMESPACE _GLIBCXX_END_NESTED_NAMESPACE
60
#else
63
#else
61
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X { 
64
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X _GLIBCXX_VISIBILITY(default) { 
62
# define _GLIBCXX_END_NAMESPACE } 
65
# define _GLIBCXX_END_NAMESPACE } 
63
# if _GLIBCXX_NAMESPACE_ASSOCIATION_DEBUG
66
# if _GLIBCXX_NAMESPACE_ASSOCIATION_DEBUG
64
#  define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y) namespace X { namespace Y {
67
#  define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y) namespace X { namespace Y _GLIBCXX_VISIBILITY(default) {
65
#  define _GLIBCXX_END_NESTED_NAMESPACE  } }
68
#  define _GLIBCXX_END_NESTED_NAMESPACE  } }
66
# else
69
# else
67
#  define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y) _GLIBCXX_BEGIN_NAMESPACE(X)
70
#  define _GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y) _GLIBCXX_BEGIN_NAMESPACE(X)
(-)src/globals_locale.cc (-2 / +2 lines)
Lines 1-4 Link Here
1
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
1
// Copyright (C) 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
2
//
2
//
3
// This file is part of the GNU ISO C++ Library.  This library is free
3
// This file is part of the GNU ISO C++ Library.  This library is free
4
// software; you can redistribute it and/or modify it under the
4
// software; you can redistribute it and/or modify it under the
Lines 43-49 Link Here
43
// In macro form:
43
// In macro form:
44
// _GLIBCXX_ASM_SYMVER(currentname, oldname, GLIBCXX_3.2)
44
// _GLIBCXX_ASM_SYMVER(currentname, oldname, GLIBCXX_3.2)
45
45
46
namespace __gnu_internal
46
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
47
{
47
{
48
  using namespace std;
48
  using namespace std;
49
49
(-)src/pool_allocator.cc (-2 / +2 lines)
Lines 1-6 Link Here
1
// Allocator details.
1
// Allocator details.
2
2
3
// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3
// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
4
//
4
//
5
// This file is part of the GNU ISO C++ Library.  This library is free
5
// This file is part of the GNU ISO C++ Library.  This library is free
6
// software; you can redistribute it and/or modify it under the
6
// software; you can redistribute it and/or modify it under the
Lines 35-41 Link Here
35
#include <cstdlib>
35
#include <cstdlib>
36
#include <ext/pool_allocator.h>
36
#include <ext/pool_allocator.h>
37
37
38
namespace __gnu_internal
38
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
39
{
39
{
40
  static __glibcxx_mutex_define_initialized(palloc_init_mutex);
40
  static __glibcxx_mutex_define_initialized(palloc_init_mutex);
41
}
41
}
(-)src/mt_allocator.cc (-2 / +2 lines)
Lines 1-6 Link Here
1
// Allocator details.
1
// Allocator details.
2
2
3
// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3
// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
4
//
4
//
5
// This file is part of the GNU ISO C++ Library.  This library is free
5
// This file is part of the GNU ISO C++ Library.  This library is free
6
// software; you can redistribute it and/or modify it under the
6
// software; you can redistribute it and/or modify it under the
Lines 35-41 Link Here
35
#include <bits/concurrence.h>
35
#include <bits/concurrence.h>
36
#include <ext/mt_allocator.h>
36
#include <ext/mt_allocator.h>
37
37
38
namespace __gnu_internal
38
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
39
{
39
{
40
#ifdef __GTHREADS
40
#ifdef __GTHREADS
41
  struct __freelist
41
  struct __freelist
(-)src/locale_init.cc (-2 / +2 lines)
Lines 1-4 Link Here
1
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
2
// Free Software Foundation, Inc.
2
// Free Software Foundation, Inc.
3
//
3
//
4
// This file is part of the GNU ISO C++ Library.  This library is free
4
// This file is part of the GNU ISO C++ Library.  This library is free
Lines 35-41 Link Here
35
#include <bits/atomicity.h>
35
#include <bits/atomicity.h>
36
#include <bits/concurrence.h>
36
#include <bits/concurrence.h>
37
37
38
namespace __gnu_internal
38
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
39
{
39
{
40
  // Defined in globals.cc.
40
  // Defined in globals.cc.
41
  extern std::locale 		c_locale;
41
  extern std::locale 		c_locale;
(-)src/locale.cc (-1 / +1 lines)
Lines 35-41 Link Here
35
#include <bits/atomicity.h>
35
#include <bits/atomicity.h>
36
#include <bits/concurrence.h>
36
#include <bits/concurrence.h>
37
37
38
namespace __gnu_internal
38
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
39
{
39
{
40
  // Mutex object for cache access
40
  // Mutex object for cache access
41
  static __glibcxx_mutex_define_initialized(locale_cache_mutex);
41
  static __glibcxx_mutex_define_initialized(locale_cache_mutex);
(-)src/globals_io.cc (-2 / +3 lines)
Lines 1-4 Link Here
1
// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
2
// Free Software Foundation, Inc.
2
//
3
//
3
// This file is part of the GNU ISO C++ Library.  This library is free
4
// This file is part of the GNU ISO C++ Library.  This library is free
4
// software; you can redistribute it and/or modify it under the
5
// software; you can redistribute it and/or modify it under the
Lines 75-81 Link Here
75
76
76
_GLIBCXX_END_NAMESPACE
77
_GLIBCXX_END_NAMESPACE
77
78
78
namespace __gnu_internal
79
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
79
{
80
{
80
  using namespace std;
81
  using namespace std;
81
  using namespace __gnu_cxx;
82
  using namespace __gnu_cxx;
(-)src/ext-inst.cc (-2 / +2 lines)
Lines 1-6 Link Here
1
// Explicit instantiation file.
1
// Explicit instantiation file.
2
2
3
// Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
3
// Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
4
//
4
//
5
// This file is part of the GNU ISO C++ Library.  This library is free
5
// This file is part of the GNU ISO C++ Library.  This library is free
6
// software; you can redistribute it and/or modify it under the
6
// software; you can redistribute it and/or modify it under the
Lines 34-40 Link Here
34
#include <ext/rope>
34
#include <ext/rope>
35
#include <ext/stdio_filebuf.h>
35
#include <ext/stdio_filebuf.h>
36
36
37
namespace __gnu_internal
37
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
38
{
38
{
39
  const int min_len = __gnu_cxx::_Rope_constants::_S_max_rope_depth + 1;
39
  const int min_len = __gnu_cxx::_Rope_constants::_S_max_rope_depth + 1;
40
}
40
}
(-)src/ios_init.cc (-1 / +1 lines)
Lines 40-46 Link Here
40
#include <ext/stdio_filebuf.h>
40
#include <ext/stdio_filebuf.h>
41
#include <ext/stdio_sync_filebuf.h>
41
#include <ext/stdio_sync_filebuf.h>
42
42
43
namespace __gnu_internal
43
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
44
{
44
{
45
  using namespace __gnu_cxx;
45
  using namespace __gnu_cxx;
46
46
(-)src/debug.cc (-1 / +1 lines)
Lines 39-45 Link Here
39
39
40
using namespace std;
40
using namespace std;
41
41
42
namespace __gnu_internal
42
namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden)
43
{
43
{
44
  static __glibcxx_mutex_define_initialized(iterator_base_mutex);
44
  static __glibcxx_mutex_define_initialized(iterator_base_mutex);
45
} // namespace __gnu_internal
45
} // namespace __gnu_internal

Return to bug 19664