This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] fortran/arith.c -- Fix the range of integers in overflow checks
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Sun, 27 Aug 2006 16:01:05 -0700
- Subject: Re: [PATCH] fortran/arith.c -- Fix the range of integers in overflow checks
- References: <20060827225221.F1996110019@bromo.msbb.uc.edu>
On Sun, Aug 27, 2006 at 06:52:21PM -0400, Jack Howarth wrote:
> Steve,
> The patch works fine on Darwin PPC and produces no regressions
> at either -m32 or -m64. I would note however that I have never
> seen intrinsic_set_exponent fail at either -m32 or -m64 before
> either.
> Jack
It won't fail without my patch because the old range checking
would allow a too large of value through to the backend. I
suspect that this code may fail on systems with integer(16).
Does Darwin PPC have this kind type?
Thanks for testing the patch.
--
Steve