Mercurial > hg > CbC > CbC_gcc
diff gcc/realmpfr.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | b7f97abdc517 |
children | 84e7813d76e9 |
line wrap: on
line diff
--- a/gcc/realmpfr.h Sun Aug 21 07:07:55 2011 +0900 +++ b/gcc/realmpfr.h Fri Oct 27 22:46:09 2017 +0900 @@ -1,7 +1,6 @@ /* Definitions of floating-point conversion from compiler internal format to MPFR. - Copyright (C) 2010 - Free Software Foundation, Inc. + Copyright (C) 2010-2017 Free Software Foundation, Inc. This file is part of GCC. @@ -22,19 +21,21 @@ #ifndef GCC_REALGMP_H #define GCC_REALGMP_H -#include <gmp.h> #include <mpfr.h> #include <mpc.h> -#include "real.h" - -/* In builtins.c. */ -extern tree do_mpc_arg2 (tree, tree, tree, int, int (*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)); /* Convert between MPFR and REAL_VALUE_TYPE. The caller is responsible for initializing and clearing the MPFR parameter. */ extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mp_rnd_t); +extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, + const real_format *, mp_rnd_t); extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t); +#if (GCC_VERSION >= 3000) + /* For compatibility with mpfr 2.4 and earlier, we want to only use + GMP_RND*. */ + #pragma GCC poison MPFR_RNDN MPFR_RNDZ MPFR_RNDU MPFR_RNDD +#endif + #endif /* ! GCC_REALGMP_H */ -