This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r114752 - in /trunk/gcc/fortran: ChangeLog arit...
- From: jvdelisle at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 18 Jun 2006 06:36:46 -0000
- Subject: r114752 - in /trunk/gcc/fortran: ChangeLog arit...
Author: jvdelisle
Date: Sun Jun 18 06:36:45 2006
New Revision: 114752
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114752
Log:
2006-06-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/19310
* arith.c (gfc_range_check): Return ARITH_OK if -fno-range-check. Add
return of ARITH_NAN, ARITH_UNDERFLOW, and ARITH_OVERFLOW.
(gfc_arith_divide): If -fno-range-check allow mpfr to divide by zero.
* gfortran.h (gfc_option_t): Add new flag.
* invoke.texi: Document new flag.
* lang.opt: Add option -frange-check.
* options.c (gfc_init_options): Initialize new flag.
(gfc_handle_options): Set flag if invoked.
* simplify.c (range_check): Add error messages for
overflow, underflow, and other errors.
* trans-const.c (gfc_conv_mpfr_to_tree): Build NaN and Inf from mpfr
result.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/arith.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/invoke.texi
trunk/gcc/fortran/lang.opt
trunk/gcc/fortran/options.c
trunk/gcc/fortran/simplify.c
trunk/gcc/fortran/trans-const.c