[PATCH] fortran/arith.c -- Fix the range of integers in overflow checks
Steve Kargl
sgk@troutmask.apl.washington.edu
Thu Sep 7 16:50:00 GMT 2006
On Sun, Aug 27, 2006 at 08:45:03AM -0700, Steve Kargl wrote:
>
> * gfortran.h (gfc_integer_info): Delete max_int member
> * arith.c (gfc_arith_init_1): Remove initialization of max_int.
> (gfc_arith_done_1): Remove clearing of max_int.
> (gfc_check_integer_range): Use huge instead of max_int.
> * simplify.c (gfc_simplify_not): Build a mask in place of max_int.
>
> 2006-08-27 Steven G. Kargl <kargls@comcast.net>
>
> * gfortran.fortran-torture/compile/data_1.f90: Fix overflow.
> * gfortran.dg/enum_8.f90: Fix dg-error for overflow.
> * gfortran.dg/g77/20030326-1.f: Ditto.
>
Committed.
--
Steve
More information about the Fortran
mailing list