Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76637 - trunk/boost/accumulators/statistics
From: eric_at_[hidden]
Date: 2012-01-22 12:56:11


Author: eric_niebler
Date: 2012-01-22 12:56:10 EST (Sun, 22 Jan 2012)
New Revision: 76637
URL: http://svn.boost.org/trac/boost/changeset/76637

Log:
Use attribute names with underscores for GCC, fixes #6416
Text files modified:
   trunk/boost/accumulators/statistics/sum_kahan.hpp | 2 +-
   trunk/boost/accumulators/statistics/weighted_sum_kahan.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/accumulators/statistics/sum_kahan.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/sum_kahan.hpp (original)
+++ trunk/boost/accumulators/statistics/sum_kahan.hpp 2012-01-22 12:56:10 EST (Sun, 22 Jan 2012)
@@ -51,7 +51,7 @@
     template<typename Args>
     void
 #if BOOST_ACCUMULATORS_GCC_VERSION > 40305
- __attribute__((optimize("no-associative-math")))
+ __attribute__((__optimize__("no-associative-math")))
 #endif
     operator ()(Args const & args)
     {

Modified: trunk/boost/accumulators/statistics/weighted_sum_kahan.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_sum_kahan.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_sum_kahan.hpp 2012-01-22 12:56:10 EST (Sun, 22 Jan 2012)
@@ -52,7 +52,7 @@
         template<typename Args>
         void
 #if BOOST_ACCUMULATORS_GCC_VERSION > 40305
- __attribute__((optimize("no-associative-math")))
+ __attribute__((__optimize__("no-associative-math")))
 #endif
         operator ()(Args const &args)
         {


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