|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59505 - trunk/boost/config/compiler
From: kbelco_at_[hidden]
Date: 2010-02-05 00:51:16
Author: noel_belcourt
Date: 2010-02-05 00:51:15 EST (Fri, 05 Feb 2010)
New Revision: 59505
URL: http://svn.boost.org/trac/boost/changeset/59505
Log:
Changes to support pgi-10.x.
John suggested running configure --enable-test but
even after making suggested changes, it still doesn't
seem to pick up that BOOST_HAS_PTHREADS has been defined.
Also, not sure how to undefine these macros as they seem
to be set after I explicitly undefine them.
the following macros need to be defined
BOOST_HAS_PTHREADS
the following macros need to be undef'ed
BOOST_NO_STDC_NAMESPACE BOOST_NO_EXCEPTION_STD_NAMESPACE BOOST_DEDUCED_TYPENAME
Text files modified:
trunk/boost/config/compiler/pgi.hpp | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
Modified: trunk/boost/config/compiler/pgi.hpp
==============================================================================
--- trunk/boost/config/compiler/pgi.hpp (original)
+++ trunk/boost/config/compiler/pgi.hpp 2010-02-05 00:51:15 EST (Fri, 05 Feb 2010)
@@ -16,11 +16,28 @@
// if no threading API is detected.
//
-#if (__PGIC__ >= 7)
+// PGI 10.x doesn't seem to define __PGIC__
+
+// versions earlier than 10.x do define __PGIC__
+#if __PGIC__ >= 10
+
+// options requested by configure --enable-test
+#define BOOST_HAS_PTHREADS
+#define BOOST_HAS_NRVO
+#define BOOST_HAS_LONG_LONG
+
+// options --enable-test wants undefined
+#undef BOOST_NO_STDC_NAMESPACE
+#undef BOOST_NO_EXCEPTION_STD_NAMESPACE
+#undef BOOST_DEDUCED_TYPENAME
+
+#elif __PGIC__ >= 7
#define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
#define BOOST_NO_TWO_PHASE_NAME_LOOKUP
#define BOOST_NO_SWPRINTF
+#define BOOST_NO_AUTO_MULTIDECLARATIONS
+#define BOOST_NO_AUTO_DECLARATIONS
#else
@@ -32,8 +49,6 @@
//
// See boost\config\suffix.hpp for BOOST_NO_LONG_LONG
//
-#define BOOST_NO_AUTO_DECLARATIONS
-#define BOOST_NO_AUTO_MULTIDECLARATIONS
#define BOOST_NO_CHAR16_T
#define BOOST_NO_CHAR32_T
#define BOOST_NO_CONCEPTS
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk