[convert.c] PR 61876: Guard transformation to lrint by -fno-math-errno.
* convert.c (convert_to_integer): Guard transformation to lrint by -fno-math-errno. From-SVN: r213628
This commit is contained in:
parent
bc5e395d60
commit
371e764dd9
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -477,8 +477,8 @@ convert_to_integer (tree type, tree expr)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user