os/ossrv/ossrv_pub/boost_apis/boost/config/compiler/gcc.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/config/compiler/gcc.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,105 @@
     1.4 +//  (C) Copyright John Maddock 2001 - 2003. 
     1.5 +//  (C) Copyright Darin Adler 2001 - 2002. 
     1.6 +//  (C) Copyright Jens Maurer 2001 - 2002. 
     1.7 +//  (C) Copyright Beman Dawes 2001 - 2003. 
     1.8 +//  (C) Copyright Douglas Gregor 2002. 
     1.9 +//  (C) Copyright David Abrahams 2002 - 2003. 
    1.10 +//  (C) Copyright Synge Todo 2003. 
    1.11 +//  Use, modification and distribution are subject to the 
    1.12 +//  Boost Software License, Version 1.0. (See accompanying file 
    1.13 +//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    1.14 +
    1.15 +//  See http://www.boost.org for most recent version.
    1.16 +
    1.17 +//  GNU C++ compiler setup:
    1.18 +
    1.19 +#if __GNUC__ < 3
    1.20 +#   if __GNUC_MINOR__ == 91
    1.21 +       // egcs 1.1 won't parse shared_ptr.hpp without this:
    1.22 +#      define BOOST_NO_AUTO_PTR
    1.23 +#   endif
    1.24 +#   if __GNUC_MINOR__ < 95
    1.25 +      //
    1.26 +      // Prior to gcc 2.95 member templates only partly
    1.27 +      // work - define BOOST_MSVC6_MEMBER_TEMPLATES
    1.28 +      // instead since inline member templates mostly work.
    1.29 +      //
    1.30 +#     define BOOST_NO_MEMBER_TEMPLATES
    1.31 +#     if __GNUC_MINOR__ >= 9
    1.32 +#       define BOOST_MSVC6_MEMBER_TEMPLATES
    1.33 +#     endif
    1.34 +#   endif
    1.35 +
    1.36 +#   if __GNUC_MINOR__ < 96
    1.37 +#     define BOOST_NO_SFINAE
    1.38 +#   endif
    1.39 +
    1.40 +#   if __GNUC_MINOR__ <= 97
    1.41 +#     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
    1.42 +#     define BOOST_NO_OPERATORS_IN_NAMESPACE
    1.43 +#   endif
    1.44 +
    1.45 +#   define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
    1.46 +#   define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
    1.47 +#   define BOOST_NO_IS_ABSTRACT
    1.48 +#elif __GNUC__ == 3
    1.49 +   //
    1.50 +   // gcc-3.x problems:
    1.51 +   //
    1.52 +   // Bug specific to gcc 3.1 and 3.2:
    1.53 +   //
    1.54 +#  if ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
    1.55 +#     define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
    1.56 +#  endif
    1.57 +#  if __GNUC_MINOR__ < 4
    1.58 +#     define BOOST_NO_IS_ABSTRACT
    1.59 +#  endif
    1.60 +#endif
    1.61 +
    1.62 +#ifndef __EXCEPTIONS
    1.63 +# define BOOST_NO_EXCEPTIONS
    1.64 +#endif
    1.65 +
    1.66 +
    1.67 +//
    1.68 +// Threading support: Turn this on unconditionally here (except for
    1.69 +// those platforms where we can know for sure). It will get turned off again
    1.70 +// later if no threading API is detected.
    1.71 +//
    1.72 +#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
    1.73 +# define BOOST_HAS_THREADS
    1.74 +#endif 
    1.75 +
    1.76 +//
    1.77 +// gcc has "long long"
    1.78 +//
    1.79 +#define BOOST_HAS_LONG_LONG
    1.80 +
    1.81 +//
    1.82 +// gcc implements the named return value optimization since version 3.1
    1.83 +//
    1.84 +#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
    1.85 +#define BOOST_HAS_NRVO
    1.86 +#endif
    1.87 +
    1.88 +#define BOOST_COMPILER "GNU C++ version " __VERSION__
    1.89 +
    1.90 +//
    1.91 +// versions check:
    1.92 +// we don't know gcc prior to version 2.90:
    1.93 +#if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
    1.94 +#  error "Compiler not configured - please reconfigure"
    1.95 +#endif
    1.96 +//
    1.97 +// last known and checked version is 4.0 (Pre-release):
    1.98 +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 0))
    1.99 +#  if defined(BOOST_ASSERT_CONFIG)
   1.100 +#     error "Unknown compiler version - please run the configure tests and report the results"
   1.101 +#  else
   1.102 +// we don't emit warnings here anymore since there are no defect macros defined for
   1.103 +// gcc post 3.4, so any failures are gcc regressions...
   1.104 +//#     warning "Unknown compiler version - please run the configure tests and report the results"
   1.105 +#  endif
   1.106 +#endif
   1.107 +
   1.108 +