gcc.hpp

Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001 - 2003. 
00002 //  (C) Copyright Darin Adler 2001 - 2002. 
00003 //  (C) Copyright Jens Maurer 2001 - 2002. 
00004 //  (C) Copyright Beman Dawes 2001 - 2003. 
00005 //  (C) Copyright Douglas Gregor 2002. 
00006 //  (C) Copyright David Abrahams 2002 - 2003. 
00007 //  (C) Copyright Synge Todo 2003. 
00008 //  Use, modification and distribution are subject to the 
00009 //  Boost Software License, Version 1.0. (See accompanying file 
00010 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00011 
00012 //  See http://www.boost.org for most recent version.
00013 
00014 //  GNU C++ compiler setup:
00015 
00016 #if __GNUC__ < 3
00017 #   if __GNUC_MINOR__ == 91
00018        // egcs 1.1 won't parse shared_ptr.hpp without this:
00019 #      define BOOST_NO_AUTO_PTR
00020 #   endif
00021 #   if __GNUC_MINOR__ < 95
00022       //
00023       // Prior to gcc 2.95 member templates only partly
00024       // work - define BOOST_MSVC6_MEMBER_TEMPLATES
00025       // instead since inline member templates mostly work.
00026       //
00027 #     define BOOST_NO_MEMBER_TEMPLATES
00028 #     if __GNUC_MINOR__ >= 9
00029 #       define BOOST_MSVC6_MEMBER_TEMPLATES
00030 #     endif
00031 #   endif
00032 
00033 #   if __GNUC_MINOR__ < 96
00034 #     define BOOST_NO_SFINAE
00035 #   endif
00036 
00037 #   if __GNUC_MINOR__ <= 97
00038 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
00039 #     define BOOST_NO_OPERATORS_IN_NAMESPACE
00040 #   endif
00041 
00042 #   define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
00043 #   define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
00044 #   define BOOST_NO_IS_ABSTRACT
00045 #elif __GNUC__ == 3
00046    //
00047    // gcc-3.x problems:
00048    //
00049    // Bug specific to gcc 3.1 and 3.2:
00050    //
00051 #  if ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
00052 #     define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
00053 #  endif
00054 #  if __GNUC_MINOR__ < 4
00055 #     define BOOST_NO_IS_ABSTRACT
00056 #  endif
00057 #endif
00058 
00059 #ifndef __EXCEPTIONS
00060 # define BOOST_NO_EXCEPTIONS
00061 #endif
00062 
00063 
00064 //
00065 // Threading support: Turn this on unconditionally here (except for
00066 // those platforms where we can know for sure). It will get turned off again
00067 // later if no threading API is detected.
00068 //
00069 #if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
00070 # define BOOST_HAS_THREADS
00071 #endif 
00072 
00073 //
00074 // gcc has "long long"
00075 //
00076 #define BOOST_HAS_LONG_LONG
00077 
00078 //
00079 // gcc implements the named return value optimization since version 3.1
00080 //
00081 #if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
00082 #define BOOST_HAS_NRVO
00083 #endif
00084 
00085 #define BOOST_COMPILER "GNU C++ version " __VERSION__
00086 
00087 //
00088 // versions check:
00089 // we don't know gcc prior to version 2.90:
00090 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
00091 #  error "Compiler not configured - please reconfigure"
00092 #endif
00093 //
00094 // last known and checked version is 4.0 (Pre-release):
00095 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 0))
00096 #  if defined(BOOST_ASSERT_CONFIG)
00097 #     error "Unknown compiler version - please run the configure tests and report the results"
00098 #  else
00099 // we don't emit warnings here anymore since there are no defect macros defined for
00100 // gcc post 3.4, so any failures are gcc regressions...
00101 //#     warning "Unknown compiler version - please run the configure tests and report the results"
00102 #  endif
00103 #endif
00104 
00105 

Generated on Wed Jan 21 15:32:09 2009 for SystemC by  doxygen 1.5.5