Re: [Boost-bugs] [Boost C++ Libraries] #11756: boost.Test: non standards compliant use of FE_* macros (unable to compile boost test library on FPU-less arches)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11756: boost.Test: non standards compliant use of FE_* macros (unable to compile boost test library on FPU-less arches)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-11 10:42:55


#11756: boost.Test: non standards compliant use of FE_* macros (unable to compile
boost test library on FPU-less arches)
----------------------------------+------------------------
  Reporter: bartosz.krasinski@… | Owner: renficiaud
      Type: Patches | Status: reopened
 Milestone: Boost 1.64.0 | Component: test
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+------------------------

Comment (by Jörg Krause <joerg.krause@…>):

 No, I am on revision `c0fb4b1c21865d2096fbee2f3c77026f5a743180`.

 Sorry, the macro definitions I posted are wrong. This is the correct ones:

 * `BOOST_NO_FENV_H` ''is not defined''
 * `BOOST_TEST_FPE_SUPPORT_WITH_GLIBC_EXTENSIONS__` ''is defined''

 Note, this is the content of output/host/opt/ext-toolchain/sh4-buildroot-
 linux-uclibc/include/c++/5.4.0/fenv.h:
 {{{#!c
 #ifndef _GLIBCXX_FENV_H
 #define _GLIBCXX_FENV_H 1

 #pragma GCC system_header

 #include <bits/c++config.h>
 #if _GLIBCXX_HAVE_FENV_H
 # include_next <fenv.h>
 #endif

 #if __cplusplus >= 201103L

 #if _GLIBCXX_USE_C99_FENV_TR1

 #undef feclearexcept
 #undef fegetexceptflag
 #undef feraiseexcept
 #undef fesetexceptflag
 #undef fetestexcept
 #undef fegetround
 #undef fesetround
 #undef fegetenv
 #undef feholdexcept
 #undef fesetenv
 #undef feupdateenv

 namespace std
 {
   // types
   using ::fenv_t;
   using ::fexcept_t;

   // functions
   using ::feclearexcept;
   using ::fegetexceptflag;
   using ::feraiseexcept;
   using ::fesetexceptflag;
   using ::fetestexcept;

   using ::fegetround;
   using ::fesetround;

   using ::fegetenv;
   using ::feholdexcept;
   using ::fesetenv;
   using ::feupdateenv;
 } // namespace

 #endif // _GLIBCXX_USE_C99_FENV_TR1

 #endif // C++11

 #endif // _GLIBCXX_FENV_H

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11756#comment:47>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-03-11 10:46:11 UTC