diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2014-08-05 09:52:21 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2014-08-05 09:52:21 +0000 |
commit | 371e764dd93060374ed064413cd5c99a194c0e5e (patch) | |
tree | 83cd8fa10356f0759ffb60c615538baee4b6c742 /gcc/convert.c | |
parent | bc5e395d603755490456a20d6f9042e89f64ee01 (diff) | |
download | gcc-371e764dd93060374ed064413cd5c99a194c0e5e.tar.gz |
[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
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index 8dbf3cb0797..3834351aad5 100644 --- a/gcc/convert.c +++ b/gcc/convert.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) |