]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/37930 (gfortran error and ICE at automatic type conversion with transfe...
authorSteven G. Kargl <kargls@comcast.net>
Fri, 31 Oct 2008 04:45:28 +0000 (04:45 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 31 Oct 2008 04:45:28 +0000 (04:45 +0000)
commit7278e4dcfb3d3a55dfde95f4682a400b9a673c5c
treec50ffbe822be02d7c44b1f0de55e15e5f92b027c
parent98d53624ea58e960f4ebfe26af1b242b0b09b76a
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
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/arith.h
gcc/fortran/simplify.c