This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AARCH64][ACLE] Implement __ARM_FP_FENV_ROUNDING in aarch64 backend.


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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]