* convert.c (convert_to_integer): Guard transformation to lrint by
-fno-math-errno.
From-SVN: r213628
+2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * convert.c (convert_to_integer): Guard transformation to lrint by
+ -fno-math-errno.
+
2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64-builtins.c
break;
/* ... Fall through ... */
CASE_FLT_FN (BUILT_IN_RINT):
- /* Only convert in ISO C99 mode. */
- if (!targetm.libc_has_function (function_c99_misc))
+ /* Only convert in ISO C99 mode and with -fno-math-errno. */
+ if (!targetm.libc_has_function (function_c99_misc) || flag_errno_math)
break;
if (outprec < TYPE_PRECISION (integer_type_node)
|| (outprec == TYPE_PRECISION (integer_type_node)