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

Private GIT Repository
620f457586eb587c2db773f9a0b3cc3120092b62
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / config / compiler / intel.hpp
1 //  (C) Copyright John Maddock 2001-8.\r
2 //  (C) Copyright Peter Dimov 2001.\r
3 //  (C) Copyright Jens Maurer 2001.\r
4 //  (C) Copyright David Abrahams 2002 - 2003.\r
5 //  (C) Copyright Aleksey Gurtovoy 2002 - 2003.\r
6 //  (C) Copyright Guillaume Melquiond 2002 - 2003.\r
7 //  (C) Copyright Beman Dawes 2003.\r
8 //  (C) Copyright Martin Wille 2003.\r
9 //  Use, modification and distribution are subject to the\r
10 //  Boost Software License, Version 1.0. (See accompanying file\r
11 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r
12 \r
13 //  See http://www.boost.org for most recent version.\r
14 \r
15 //  Intel compiler setup:\r
16 \r
17 #include "boost/config/compiler/common_edg.hpp"\r
18 \r
19 #if defined(__INTEL_COMPILER)\r
20 #  define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER\r
21 #elif defined(__ICL)\r
22 #  define BOOST_INTEL_CXX_VERSION __ICL\r
23 #elif defined(__ICC)\r
24 #  define BOOST_INTEL_CXX_VERSION __ICC\r
25 #elif defined(__ECC)\r
26 #  define BOOST_INTEL_CXX_VERSION __ECC\r
27 #endif\r
28 \r
29 #define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)\r
30 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION\r
31 \r
32 #if defined(_WIN32) || defined(_WIN64)\r
33 #  define BOOST_INTEL_WIN BOOST_INTEL\r
34 #else\r
35 #  define BOOST_INTEL_LINUX BOOST_INTEL\r
36 #endif\r
37 \r
38 #if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)\r
39 #  define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS\r
40 #  define BOOST_NO_TEMPLATE_TEMPLATES\r
41 #endif\r
42 \r
43 #if (BOOST_INTEL_CXX_VERSION <= 600)\r
44 \r
45 #  if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)\r
46 \r
47 // Boost libraries assume strong standard conformance unless otherwise\r
48 // indicated by a config macro. As configured by Intel, the EDG front-end\r
49 // requires certain compiler options be set to achieve that strong conformance.\r
50 // Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)\r
51 // and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for\r
52 // details as they apply to particular versions of the compiler. When the\r
53 // compiler does not predefine a macro indicating if an option has been set,\r
54 // this config file simply assumes the option has been set.\r
55 // Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if\r
56 // the compiler option is not enabled.\r
57 \r
58 #     define BOOST_NO_SWPRINTF\r
59 #  endif\r
60 \r
61 // Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)\r
62 \r
63 #  if defined(_MSC_VER) && (_MSC_VER <= 1200)\r
64 #     define BOOST_NO_VOID_RETURNS\r
65 #     define BOOST_NO_INTEGRAL_INT64_T\r
66 #  endif\r
67 \r
68 #endif\r
69 \r
70 #if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32)\r
71 #  define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS\r
72 #endif\r
73 \r
74 // See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864\r
75 #if BOOST_INTEL_CXX_VERSION < 600\r
76 #  define BOOST_NO_INTRINSIC_WCHAR_T\r
77 #else\r
78 // We should test the macro _WCHAR_T_DEFINED to check if the compiler\r
79 // supports wchar_t natively. *BUT* there is a problem here: the standard\r
80 // headers define this macro if they typedef wchar_t. Anyway, we're lucky\r
81 // because they define it without a value, while Intel C++ defines it\r
82 // to 1. So we can check its value to see if the macro was defined natively\r
83 // or not.\r
84 // Under UNIX, the situation is exactly the same, but the macro _WCHAR_T\r
85 // is used instead.\r
86 #  if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)\r
87 #    define BOOST_NO_INTRINSIC_WCHAR_T\r
88 #  endif\r
89 #endif\r
90 \r
91 #if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)\r
92 //\r
93 // Figure out when Intel is emulating this gcc bug\r
94 // (All Intel versions prior to 9.0.26, and versions\r
95 // later than that if they are set up to emulate gcc 3.2\r
96 // or earlier):\r
97 //\r
98 #  if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912)\r
99 #     define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL\r
100 #  endif\r
101 #endif\r
102 #if (defined(__GNUC__) && (__GNUC__ < 4)) || defined(_WIN32) || (BOOST_INTEL_CXX_VERSION <= 1110)\r
103 // GCC or VC emulation:\r
104 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
105 #endif\r
106 //\r
107 // Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T\r
108 // set correctly, if we don't do this now, we will get errors later\r
109 // in type_traits code among other things, getting this correct\r
110 // for the Intel compiler is actually remarkably fragile and tricky:\r
111 //\r
112 #if defined(BOOST_NO_INTRINSIC_WCHAR_T)\r
113 #include <cwchar>\r
114 template< typename T > struct assert_no_intrinsic_wchar_t;\r
115 template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void type; };\r
116 // if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T\r
117 // where it is defined above:\r
118 typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_;\r
119 #else\r
120 template< typename T > struct assert_intrinsic_wchar_t;\r
121 template<> struct assert_intrinsic_wchar_t<wchar_t> {};\r
122 // if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line:\r
123 template<> struct assert_intrinsic_wchar_t<unsigned short> {};\r
124 #endif\r
125 \r
126 #if _MSC_VER+0 >= 1000\r
127 #  if _MSC_VER >= 1200\r
128 #     define BOOST_HAS_MS_INT64\r
129 #  endif\r
130 #  define BOOST_NO_SWPRINTF\r
131 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
132 #elif defined(_WIN32)\r
133 #  define BOOST_DISABLE_WIN32\r
134 #endif\r
135 \r
136 // I checked version 6.0 build 020312Z, it implements the NRVO.\r
137 // Correct this as you find out which version of the compiler\r
138 // implemented the NRVO first.  (Daniel Frey)\r
139 #if (BOOST_INTEL_CXX_VERSION >= 600)\r
140 #  define BOOST_HAS_NRVO\r
141 #endif\r
142 \r
143 //\r
144 // versions check:\r
145 // we don't support Intel prior to version 5.0:\r
146 #if BOOST_INTEL_CXX_VERSION < 500\r
147 #  error "Compiler not supported or configured - please reconfigure"\r
148 #endif\r
149 \r
150 // Intel on MacOS requires\r
151 #if defined(__APPLE__) && defined(__INTEL_COMPILER)\r
152 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
153 #endif\r
154 \r
155 // Intel on Altix Itanium\r
156 #if defined(__itanium__) && defined(__INTEL_COMPILER)\r
157 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
158 #endif\r
159 \r
160 //\r
161 // last known and checked version:\r
162 #if (BOOST_INTEL_CXX_VERSION > 1110)\r
163 #  if defined(BOOST_ASSERT_CONFIG)\r
164 #     error "Unknown compiler version - please run the configure tests and report the results"\r
165 #  elif defined(_MSC_VER)\r
166 //\r
167 //      We don't emit this warning any more, since we have so few\r
168 //      defect macros set anyway (just the one).\r
169 //\r
170 //#     pragma message("Unknown compiler version - please run the configure tests and report the results")\r
171 #  endif\r
172 #endif\r
173 \r