aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/arith.h
diff options
context:
space:
mode:
authorSteven G. Kargl <kargls@comcast.net>2008-10-31 04:45:28 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2008-10-31 04:45:28 +0000
commit7278e4dcfb3d3a55dfde95f4682a400b9a673c5c (patch)
treec50ffbe822be02d7c44b1f0de55e15e5f92b027c /gcc/fortran/arith.h
parent98d53624ea58e960f4ebfe26af1b242b0b09b76a (diff)
downloadgcc-7278e4dcfb3d3a55dfde95f4682a400b9a673c5c.zip
gcc-7278e4dcfb3d3a55dfde95f4682a400b9a673c5c.tar.gz
gcc-7278e4dcfb3d3a55dfde95f4682a400b9a673c5c.tar.bz2
re PR fortran/37930 (gfortran error and ICE at automatic type conversion with transfer intrinsic)
2008-10-30 Steven G. Kargl <kargls@comcast.net> PR fortran/37930 * fortran/arith.c (gfc_mpfr_to_mpz): Test for NaN and Inf values. Remove stale comment and kludge code for MPFR 2.0.1 and older. (gfc_real2int): Error on conversion of NaN or Inf. (gfc_complex2int): Ditto. * fortran/arith.h: Update mpfr_to_mpz prototype. * fortran/simplify.c (gfc_simplify_ceiling, gfc_simplify_floor, gfc_simplify_ifix, gfc_simplify_idint, simplify_nint): Update function calls to include locus. From-SVN: r141488
Diffstat (limited to 'gcc/fortran/arith.h')
-rw-r--r--gcc/fortran/arith.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/arith.h b/gcc/fortran/arith.h
index e27186a..344bc78 100644
--- a/gcc/fortran/arith.h
+++ b/gcc/fortran/arith.h
@@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see
/* MPFR also does not have the conversion of a mpfr_t to a mpz_t, so declare
a function for this as well. */
-void gfc_mpfr_to_mpz (mpz_t, mpfr_t);
+void gfc_mpfr_to_mpz (mpz_t, mpfr_t, locus *);
void gfc_set_model_kind (int);
void gfc_set_model (mpfr_t);