[OE-core] [PATCH 8/8] boost: Fix build on soft-float ABI arm systems

Phil Blundell pb at pbcl.net
Wed Feb 3 20:42:51 UTC 2016


On Mon, 2016-02-01 at 05:08 +0000, Khem Raj wrote:
> +     BOOST_FPE_ALL       = MCW_EM,
> +-#elif defined(BOOST_NO_FENV_H) || defined(BOOST_CLANG)
> ++#elif defined(BOOST_NO_FENV_H) || defined(BOOST_CLANG) \
> ++    || defined(__ARM_PCS)
> +     BOOST_FPE_ALL       = 1,

This looks a bit bogus.  Whether or not a particular fesetenv() flag is
available is, or should be, orthogonal to the question of whether you
are using the soft-float or hard-float ABI.  I think it might be true
that some libraries don't implement fesetenv() when using softfp (i.e.
no VFP instructions at all) but that is not necessarily the same thing
as the soft float ABI.  What was the exact situation where you had a
problem with this?

Anyway, if what you want to test is the availability of FE_DIVBYZERO,
you can just use "#ifdef FE_DIVBYZERO" since FE_* are required to be
macros.

p.





More information about the Openembedded-core mailing list