[ACTIVITY] weekly status

Michael Hope michael.hope at linaro.org
Sun Nov 20 22:21:01 UTC 2011


On Sat, Nov 19, 2011 at 10:05 AM, Ken Werner <ken.werner at linaro.org> wrote:
> Hi,
> * Debugged a linking failure of the android perflab benchmark that Andy is
> seeing. Turns out that the GCC is optimizing two consecutive calls to sinf
> and cosf (same angle) are optimized by the GCC to one sincosf call. The libm
> provided by the benchmark is lacking sincosf. Workaround is to use
> -fno-builtin-sinf -fno-builtin-cosf.

This is set by gcc/config/linux.h:
 #define TARGET_HAS_SINCOS (OPTION_GLIBC || OPTION_BIONIC)

sincos() first appeared in Android 2.3 which means that programs built
with GCC may not work on earlier versions of Android.  The Bionic
version of sincos() just calls sin() followed by cos(), so you lose in
compatibility for no gain in performance.

Patches are welcome,

-- Michael



More information about the linaro-toolchain mailing list