On 11/01/16 08:12, Bilyan Borisov wrote:
+ /* Since fesetround () is not present in newlib, but it's present in glibc, we + only define the __ARM_FP_FENV_ROUNDING macro to 1 when glibc is used + i.e. on aarch64-none-linux-gnu. The OPTION_GLIBC macro is undefined on + aarch64-none-elf, and is defined on aarch64-none-linux-gnu to an expression + that evaluates to 1 when targetting glibc. The musl, bionic, and uclibc + cases haven't been investigated, so don't do any action in that case. */ +#ifdef OPTION_GLIBC + aarch64_def_or_undef (OPTION_GLIBC, "__ARM_FP_FENV_ROUNDING", pfile); +#endif aarch64_def_or_undef (TARGET_CRC32, "__ARM_FEATURE_CRC32", pfile);
musl, bionic and uclibc all have working fesetround (but uclibc does not yet support aarch64 i think)