Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65763 - in trunk: boost/exception boost/exception/detail libs/exception/test
From: emil_at_[hidden]
Date: 2010-10-05 11:04:54


Author: emildotchevski
Date: 2010-10-05 11:04:50 EDT (Tue, 05 Oct 2010)
New Revision: 65763
URL: http://svn.boost.org/trac/boost/changeset/65763

Log:
default gcc visibility for exception types, <link>static requirement in test Jamfile.
Text files modified:
   trunk/boost/exception/detail/exception_ptr.hpp | 12 ++++++++++++
   trunk/boost/exception/exception.hpp | 10 ++++++++++
   trunk/libs/exception/test/Jamfile.v2 | 1 +
   3 files changed, 23 insertions(+), 0 deletions(-)

Modified: trunk/boost/exception/detail/exception_ptr.hpp
==============================================================================
--- trunk/boost/exception/detail/exception_ptr.hpp (original)
+++ trunk/boost/exception/detail/exception_ptr.hpp 2010-10-05 11:04:50 EDT (Tue, 05 Oct 2010)
@@ -68,6 +68,7 @@
             boost::exception,
             std::bad_alloc
                 {
+ ~bad_alloc_() throw() { }
                 };
 
         struct
@@ -75,6 +76,7 @@
             boost::exception,
             std::bad_exception
                 {
+ ~bad_exception_() throw() { }
                 };
 
         template <class Exception>
@@ -104,6 +106,11 @@
         e = get_static_exception_object<Exception>();
         }
 
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility push (default)
+# endif
+#endif
     class
     unknown_exception:
         public boost::exception,
@@ -143,6 +150,11 @@
 #endif
             }
         };
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility pop
+# endif
+#endif
 
     namespace
     exception_detail

Modified: trunk/boost/exception/exception.hpp
==============================================================================
--- trunk/boost/exception/exception.hpp (original)
+++ trunk/boost/exception/exception.hpp 2010-10-05 11:04:50 EDT (Tue, 05 Oct 2010)
@@ -189,6 +189,11 @@
         E const & set_info( E const &, throw_line const & );
         }
 
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility push (default)
+# endif
+#endif
     class
     exception
         {
@@ -251,6 +256,11 @@
         mutable char const * throw_file_;
         mutable int throw_line_;
         };
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility pop
+# endif
+#endif
 
     inline
     exception::

Modified: trunk/libs/exception/test/Jamfile.v2
==============================================================================
--- trunk/libs/exception/test/Jamfile.v2 (original)
+++ trunk/libs/exception/test/Jamfile.v2 2010-10-05 11:04:50 EDT (Tue, 05 Oct 2010)
@@ -9,6 +9,7 @@
 
 project
   : requirements
+ <link>static
       <exception-handling>on
       <source>/boost//exception
       <define>BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR


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