aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-sprintf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-01-27 12:28:34 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-01-27 12:28:34 +0100
commit89dc4c9488b01debe9c4b0e81fff09bdbd0bdb7b (patch)
tree974cf5ad5fa8235f5181382c64f0255b46732fda /gcc/gimple-ssa-sprintf.c
parent6ca513f9b24dacf47db395f4dc41d11037810706 (diff)
downloadgcc-89dc4c9488b01debe9c4b0e81fff09bdbd0bdb7b.zip
gcc-89dc4c9488b01debe9c4b0e81fff09bdbd0bdb7b.tar.gz
gcc-89dc4c9488b01debe9c4b0e81fff09bdbd0bdb7b.tar.bz2
realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
* realmpfr.h: Poison MPFR_RND{N,Z,U,D}. * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead of MPFR_RNDN. From-SVN: r244966
Diffstat (limited to 'gcc/gimple-ssa-sprintf.c')
-rw-r--r--gcc/gimple-ssa-sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c
index bd15a39..8261a44 100644
--- a/gcc/gimple-ssa-sprintf.c
+++ b/gcc/gimple-ssa-sprintf.c
@@ -1498,7 +1498,7 @@ format_floating_max (tree type, char spec, HOST_WIDE_INT prec)
round-to-nearest mode. */
mpfr_t x;
mpfr_init2 (x, rfmt->p);
- mpfr_from_real (x, &rv, MPFR_RNDN);
+ mpfr_from_real (x, &rv, GMP_RNDN);
/* Return a value one greater to account for the leading minus sign. */
return 1 + get_mpfr_format_length (x, "", prec, spec, 'D');