]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/config/compiler/gcc.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
c97353bc42ac904da74264f9459ccda60c1ba22d
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / config / compiler / gcc.hpp
1 //  (C) Copyright John Maddock 2001 - 2003. \r
2 //  (C) Copyright Darin Adler 2001 - 2002. \r
3 //  (C) Copyright Jens Maurer 2001 - 2002. \r
4 //  (C) Copyright Beman Dawes 2001 - 2003. \r
5 //  (C) Copyright Douglas Gregor 2002. \r
6 //  (C) Copyright David Abrahams 2002 - 2003. \r
7 //  (C) Copyright Synge Todo 2003. \r
8 //  Use, modification and distribution are subject to the \r
9 //  Boost Software License, Version 1.0. (See accompanying file \r
10 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r
11 \r
12 //  See http://www.boost.org for most recent version.\r
13 \r
14 //  GNU C++ compiler setup:\r
15 \r
16 #if __GNUC__ < 3\r
17 #   if __GNUC_MINOR__ == 91\r
18        // egcs 1.1 won't parse shared_ptr.hpp without this:\r
19 #      define BOOST_NO_AUTO_PTR\r
20 #   endif\r
21 #   if __GNUC_MINOR__ < 95\r
22       //\r
23       // Prior to gcc 2.95 member templates only partly\r
24       // work - define BOOST_MSVC6_MEMBER_TEMPLATES\r
25       // instead since inline member templates mostly work.\r
26       //\r
27 #     define BOOST_NO_MEMBER_TEMPLATES\r
28 #     if __GNUC_MINOR__ >= 9\r
29 #       define BOOST_MSVC6_MEMBER_TEMPLATES\r
30 #     endif\r
31 #   endif\r
32 \r
33 #   if __GNUC_MINOR__ < 96\r
34 #     define BOOST_NO_SFINAE\r
35 #   endif\r
36 \r
37 #   if __GNUC_MINOR__ <= 97\r
38 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS\r
39 #     define BOOST_NO_OPERATORS_IN_NAMESPACE\r
40 #   endif\r
41 \r
42 #   define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE\r
43 #   define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL\r
44 #   define BOOST_NO_IS_ABSTRACT\r
45 #elif __GNUC__ == 3\r
46 #  if defined (__PATHSCALE__)\r
47 #     define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
48 #     define BOOST_NO_IS_ABSTRACT\r
49 #  endif\r
50    //\r
51    // gcc-3.x problems:\r
52    //\r
53    // Bug specific to gcc 3.1 and 3.2:\r
54    //\r
55 #  if ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))\r
56 #     define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS\r
57 #  endif\r
58 #  if __GNUC_MINOR__ < 4\r
59 #     define BOOST_NO_IS_ABSTRACT\r
60 #  endif\r
61 #endif\r
62 #if __GNUC__ < 4\r
63 //\r
64 // All problems to gcc-3.x and earlier here:\r
65 //\r
66 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
67 #  ifdef __OPEN64__\r
68 #     define BOOST_NO_IS_ABSTRACT\r
69 #  endif\r
70 #endif\r
71 \r
72 #ifndef __EXCEPTIONS\r
73 # define BOOST_NO_EXCEPTIONS\r
74 #endif\r
75 \r
76 \r
77 //\r
78 // Threading support: Turn this on unconditionally here (except for\r
79 // those platforms where we can know for sure). It will get turned off again\r
80 // later if no threading API is detected.\r
81 //\r
82 #if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)\r
83 # define BOOST_HAS_THREADS\r
84 #endif \r
85 \r
86 //\r
87 // gcc has "long long"\r
88 //\r
89 #define BOOST_HAS_LONG_LONG\r
90 \r
91 //\r
92 // gcc implements the named return value optimization since version 3.1\r
93 //\r
94 #if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )\r
95 #define BOOST_HAS_NRVO\r
96 #endif\r
97 //\r
98 // RTTI and typeinfo detection is possible post gcc-4.3:\r
99 //\r
100 #if __GNUC__ * 100 + __GNUC_MINOR__ >= 403\r
101 #  ifndef __GXX_RTTI\r
102 #     define BOOST_NO_TYPEID\r
103 #     define BOOST_NO_RTTI\r
104 #  endif\r
105 #endif\r
106 \r
107 // C++0x features not implemented in any GCC version\r
108 //\r
109 #define BOOST_NO_CONSTEXPR\r
110 #define BOOST_NO_EXTERN_TEMPLATE\r
111 #define BOOST_NO_LAMBDAS\r
112 #define BOOST_NO_NULLPTR\r
113 #define BOOST_NO_RAW_LITERALS\r
114 #define BOOST_NO_TEMPLATE_ALIASES\r
115 #define BOOST_NO_UNICODE_LITERALS\r
116 \r
117 // C++0x features in 4.3.n and later\r
118 //\r
119 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) && defined(__GXX_EXPERIMENTAL_CXX0X__)\r
120 // C++0x features are only enabled when -std=c++0x or -std=gnu++0x are\r
121 // passed on the command line, which in turn defines\r
122 // __GXX_EXPERIMENTAL_CXX0X__.\r
123 #  define BOOST_HAS_DECLTYPE\r
124 #  define BOOST_HAS_RVALUE_REFS\r
125 #  define BOOST_HAS_STATIC_ASSERT\r
126 #  define BOOST_HAS_VARIADIC_TMPL\r
127 #else\r
128 #  define BOOST_NO_DECLTYPE\r
129 #  define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS\r
130 #  define BOOST_NO_RVALUE_REFERENCES\r
131 #  define BOOST_NO_STATIC_ASSERT\r
132 \r
133 // Variadic templates compiler: \r
134 //   http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html\r
135 #  ifdef __VARIADIC_TEMPLATES\r
136 #    define BOOST_HAS_VARIADIC_TMPL\r
137 #  else\r
138 #    define BOOST_NO_VARIADIC_TEMPLATES\r
139 #  endif\r
140 #endif\r
141 \r
142 // C++0x features in 4.4.n and later\r
143 //\r
144 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__)\r
145 #  define BOOST_NO_AUTO_DECLARATIONS\r
146 #  define BOOST_NO_AUTO_MULTIDECLARATIONS\r
147 #  define BOOST_NO_CHAR16_T\r
148 #  define BOOST_NO_CHAR32_T\r
149 #  define BOOST_NO_DEFAULTED_FUNCTIONS\r
150 #  define BOOST_NO_DELETED_FUNCTIONS\r
151 #  define BOOST_NO_INITIALIZER_LISTS\r
152 #  define BOOST_NO_SCOPED_ENUMS  \r
153 #endif\r
154 \r
155 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)\r
156 #  define BOOST_NO_SFINAE_EXPR\r
157 #endif\r
158 \r
159 // C++0x features in 4.4.1 and later\r
160 //\r
161 #if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40401) || !defined(__GXX_EXPERIMENTAL_CXX0X__)\r
162 // scoped enums have a serious bug in 4.4.0, so define BOOST_NO_SCOPED_ENUMS before 4.4.1\r
163 // See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38064\r
164 #  define BOOST_NO_SCOPED_ENUMS\r
165 #endif\r
166 \r
167 // C++0x features in 4.5.n and later\r
168 //\r
169 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__)\r
170 #  define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS\r
171 #endif\r
172 \r
173 // ConceptGCC compiler:\r
174 //   http://www.generic-programming.org/software/ConceptGCC/\r
175 #ifdef __GXX_CONCEPTS__\r
176 #  define BOOST_HAS_CONCEPTS\r
177 #  define BOOST_COMPILER "ConceptGCC version " __VERSION__\r
178 #else\r
179 #  define BOOST_NO_CONCEPTS\r
180 #endif\r
181 \r
182 #ifndef BOOST_COMPILER\r
183 #  define BOOST_COMPILER "GNU C++ version " __VERSION__\r
184 #endif\r
185 \r
186 //\r
187 // versions check:\r
188 // we don't know gcc prior to version 2.90:\r
189 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)\r
190 #  error "Compiler not configured - please reconfigure"\r
191 #endif\r
192 //\r
193 // last known and checked version is 4.4 (Pre-release):\r
194 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 4))\r
195 #  if defined(BOOST_ASSERT_CONFIG)\r
196 #     error "Unknown compiler version - please run the configure tests and report the results"\r
197 #  else\r
198 // we don't emit warnings here anymore since there are no defect macros defined for\r
199 // gcc post 3.4, so any failures are gcc regressions...\r
200 //#     warning "Unknown compiler version - please run the configure tests and report the results"\r
201 #  endif\r
202 #endif\r
203 \r
204 \r