[PATCH] PR fortran/37930 -- updated patch for conversion NaN,Inf to integer
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Oct 29 21:11:00 GMT 2008
Here's an updated patch. It changes the error message to
in accordance with Tobias comment. The bad <tab> was
replaced by 4 spaces. Additionally, I've removed an old
kludge needed for MPFR 2.0.1 and older. The patch has
passed a regression test on x86_64-*-*freebsd8.0.
2008-10-27 Steven G. Kargl <kargls@comcast.net>
PR fortran/37930
* gfortran.dg/int_conv_2.f90: New test.
2008-10-27 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
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr37930.diff
Type: text/x-diff
Size: 3731 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20081029/0c669a5b/attachment.bin>
More information about the Fortran
mailing list