1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/config/compiler/intel.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,158 @@
1.4 +// (C) Copyright John Maddock 2001.
1.5 +// (C) Copyright Peter Dimov 2001.
1.6 +// (C) Copyright Jens Maurer 2001.
1.7 +// (C) Copyright David Abrahams 2002 - 2003.
1.8 +// (C) Copyright Aleksey Gurtovoy 2002 - 2003.
1.9 +// (C) Copyright Guillaume Melquiond 2002 - 2003.
1.10 +// (C) Copyright Beman Dawes 2003.
1.11 +// (C) Copyright Martin Wille 2003.
1.12 +// Use, modification and distribution are subject to the
1.13 +// Boost Software License, Version 1.0. (See accompanying file
1.14 +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1.15 +
1.16 +// See http://www.boost.org for most recent version.
1.17 +
1.18 +// Intel compiler setup:
1.19 +
1.20 +#include "boost/config/compiler/common_edg.hpp"
1.21 +
1.22 +#if defined(__INTEL_COMPILER)
1.23 +# define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
1.24 +#elif defined(__ICL)
1.25 +# define BOOST_INTEL_CXX_VERSION __ICL
1.26 +#elif defined(__ICC)
1.27 +# define BOOST_INTEL_CXX_VERSION __ICC
1.28 +#elif defined(__ECC)
1.29 +# define BOOST_INTEL_CXX_VERSION __ECC
1.30 +#endif
1.31 +
1.32 +#define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
1.33 +#define BOOST_INTEL BOOST_INTEL_CXX_VERSION
1.34 +
1.35 +#if defined(_WIN32) || defined(_WIN64)
1.36 +# define BOOST_INTEL_WIN BOOST_INTEL
1.37 +#else
1.38 +# define BOOST_INTEL_LINUX BOOST_INTEL
1.39 +#endif
1.40 +
1.41 +#if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)
1.42 +# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
1.43 +# define BOOST_NO_TEMPLATE_TEMPLATES
1.44 +#endif
1.45 +
1.46 +#if (BOOST_INTEL_CXX_VERSION <= 600)
1.47 +
1.48 +# if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
1.49 +
1.50 +// Boost libraries assume strong standard conformance unless otherwise
1.51 +// indicated by a config macro. As configured by Intel, the EDG front-end
1.52 +// requires certain compiler options be set to achieve that strong conformance.
1.53 +// Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)
1.54 +// and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for
1.55 +// details as they apply to particular versions of the compiler. When the
1.56 +// compiler does not predefine a macro indicating if an option has been set,
1.57 +// this config file simply assumes the option has been set.
1.58 +// Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if
1.59 +// the compiler option is not enabled.
1.60 +
1.61 +# define BOOST_NO_SWPRINTF
1.62 +# endif
1.63 +
1.64 +// Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
1.65 +
1.66 +# if defined(_MSC_VER) && (_MSC_VER <= 1200)
1.67 +# define BOOST_NO_VOID_RETURNS
1.68 +# define BOOST_NO_INTEGRAL_INT64_T
1.69 +# endif
1.70 +
1.71 +#endif
1.72 +
1.73 +#if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32)
1.74 +# define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
1.75 +#endif
1.76 +
1.77 +// See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864
1.78 +#if BOOST_INTEL_CXX_VERSION < 600
1.79 +# define BOOST_NO_INTRINSIC_WCHAR_T
1.80 +#else
1.81 +// We should test the macro _WCHAR_T_DEFINED to check if the compiler
1.82 +// supports wchar_t natively. *BUT* there is a problem here: the standard
1.83 +// headers define this macro if they typedef wchar_t. Anyway, we're lucky
1.84 +// because they define it without a value, while Intel C++ defines it
1.85 +// to 1. So we can check its value to see if the macro was defined natively
1.86 +// or not.
1.87 +// Under UNIX, the situation is exactly the same, but the macro _WCHAR_T
1.88 +// is used instead.
1.89 +# if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)
1.90 +# define BOOST_NO_INTRINSIC_WCHAR_T
1.91 +# endif
1.92 +#endif
1.93 +
1.94 +#if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
1.95 +//
1.96 +// Figure out when Intel is emulating this gcc bug
1.97 +// (All Intel versions prior to 9.0.26, and versions
1.98 +// later than that if they are set up to emulate gcc 3.2
1.99 +// or earlier):
1.100 +//
1.101 +# if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912)
1.102 +# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
1.103 +# endif
1.104 +#endif
1.105 +
1.106 +//
1.107 +// Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T
1.108 +// set correctly, if we don't do this now, we will get errors later
1.109 +// in type_traits code among other things, getting this correct
1.110 +// for the Intel compiler is actually remarkably fragile and tricky:
1.111 +//
1.112 +#if defined(BOOST_NO_INTRINSIC_WCHAR_T)
1.113 +#include <cwchar>
1.114 +template< typename T > struct assert_no_intrinsic_wchar_t;
1.115 +template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void type; };
1.116 +// if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T
1.117 +// where it is defined above:
1.118 +typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_;
1.119 +#else
1.120 +template< typename T > struct assert_intrinsic_wchar_t;
1.121 +template<> struct assert_intrinsic_wchar_t<wchar_t> {};
1.122 +// if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line:
1.123 +template<> struct assert_intrinsic_wchar_t<unsigned short> {};
1.124 +#endif
1.125 +
1.126 +#if _MSC_VER+0 >= 1000
1.127 +# if _MSC_VER >= 1200
1.128 +# define BOOST_HAS_MS_INT64
1.129 +# endif
1.130 +# define BOOST_NO_SWPRINTF
1.131 +#elif defined(_WIN32)
1.132 +# define BOOST_DISABLE_WIN32
1.133 +#endif
1.134 +
1.135 +// I checked version 6.0 build 020312Z, it implements the NRVO.
1.136 +// Correct this as you find out which version of the compiler
1.137 +// implemented the NRVO first. (Daniel Frey)
1.138 +#if (BOOST_INTEL_CXX_VERSION >= 600)
1.139 +# define BOOST_HAS_NRVO
1.140 +#endif
1.141 +
1.142 +//
1.143 +// versions check:
1.144 +// we don't support Intel prior to version 5.0:
1.145 +#if BOOST_INTEL_CXX_VERSION < 500
1.146 +# error "Compiler not supported or configured - please reconfigure"
1.147 +#endif
1.148 +//
1.149 +// last known and checked version:
1.150 +#if (BOOST_INTEL_CXX_VERSION > 910)
1.151 +# if defined(BOOST_ASSERT_CONFIG)
1.152 +# error "Unknown compiler version - please run the configure tests and report the results"
1.153 +# elif defined(_MSC_VER)
1.154 +# pragma message("Unknown compiler version - please run the configure tests and report the results")
1.155 +# endif
1.156 +#endif
1.157 +
1.158 +
1.159 +
1.160 +
1.161 +