[cfe-dev] build fails on Solaris 11.2 with g++ 4.8.2

Vladimir Voskresensky - Oracle vladimir.voskresensky at oracle.com
Fri Apr 17 11:49:36 PDT 2015


On 04/17/15 07:46 PM, Joerg Sonnenberger wrote:
> On Fri, Apr 17, 2015 at 04:57:49PM +0300, Vladimir Voskresensky - Oracle wrote:
>> 2) isinf/isnan are macros as well from /usr/include/iso/math_c99.h expanding to
>> __builtin_isinf/__builtin_isnan so they are not from std and breaks APTFloatTest.cpp
> cmath is supposed to handle that.
But it is not on Solaris for g++ 4.8.2 with the current compile flags.
cmath has isinf/isnan in dead code:
#if _GLIBCXX_USE_C99_MATH
#if !_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC
...
namespace std _GLIBCXX_VISIBILITY(default)
{
...
   constexpr bool
   isinf(float __x)
   { return __builtin_isinf(__x); }
}

#endif
#endif

Probably test should be compiled with some different flags on Solaris?

Thanks,
Vladimir.
>
> Joerg
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list