This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fortran/29147 -- Disable integer range checking.


On Thu, Sep 28, 2006 at 10:19:55PM -0700, Brooks Moses wrote:
> Steve Kargl wrote:
> >OK for trunk and 4.1?  (It's borderline "obviously correct").
> >
> >2006-09-28  Steven G. Kargl  <kargl@gcc.gnu.org>
> >
> >	PR fortran/29147
> >	* arith.c (gfc_check_integer_range):  Disable range checking via
> >	-fno-range-check.
> 
> Does this change come with documentation?  (If not, let me know where it 
> should go, and I'll knock out a sentence or two tomorrow.)
> 

The -frange-check option is documented in invoke.texi.
Jerry implemented the option to permit Inf and NaN 
to be computed (e.g., "real :: x = 1. / 0.").  During
constant folding, the Inf would trigger an overflow
error. 

There is a section in gfortran.texi that describes 
gfortran-specific extensions involving BOZ constants.
You may want to read this text and perhaps add a blurb
about -fno-range-check.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]