From 97ff1659beac6f2700ef82f57cdadd1550c6f2ca Mon Sep 17 00:00:00 2001 From: "K. Noel Belcourt" Date: Tue, 25 Sep 2007 20:34:36 +0000 Subject: [PATCH] Add pgi.hpp configuration file for the Portland Group. Fixed problems with threading, pic code, missing math library, etc. to get mipspro toolset working better. Updated pgi toolset to fix various problems with the link line. [SVN r39531] --- include/boost/config/compiler/pgi.hpp | 25 +++++++++++++++++++ .../boost/config/select_compiler_config.hpp | 5 ++++ 2 files changed, 30 insertions(+) create mode 100644 include/boost/config/compiler/pgi.hpp diff --git a/include/boost/config/compiler/pgi.hpp b/include/boost/config/compiler/pgi.hpp new file mode 100644 index 00000000..491497d4 --- /dev/null +++ b/include/boost/config/compiler/pgi.hpp @@ -0,0 +1,25 @@ +// (C) Copyright Noel Belcourt 2007. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +// See http://www.boost.org for most recent version. + +// PGI C++ compiler setup: + +#define BOOST_COMPILER "PGI compiler version " BOOST_STRINGIZE(_COMPILER_VERSION) + +// +// Threading support: +// Turn this on unconditionally here, it will get turned off again later +// if no threading API is detected. +// + +#define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL +#define BOOST_NO_TWO_PHASE_NAME_LOOKUP +#define BOOST_NO_SWPRINTF + +// +// version check: +// probably nothing to do here? + diff --git a/include/boost/config/select_compiler_config.hpp b/include/boost/config/select_compiler_config.hpp index 9df63601..8d8db903 100644 --- a/include/boost/config/select_compiler_config.hpp +++ b/include/boost/config/select_compiler_config.hpp @@ -30,6 +30,7 @@ # define BOOST_CXX_MPW 0 # define BOOST_CXX_IBMCPP 0 # define BOOST_CXX_MSVC 0 +# define BOOST_CXX_PGI 0 // locate which compiler we are using and define @@ -95,6 +96,10 @@ // IBM Visual Age # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp" +#elif defined(__PGI) +// Portland Group Inc. +# define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp" + #elif defined _MSC_VER // Microsoft Visual C++ //