From: Jerry DeLisle Date: Sun, 29 Jun 2008 18:56:08 +0000 (+0000) Subject: invoke.texi: Add documentation for runtime behavior of -fno-range-check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=082b0571b5243222c59703a96c2c4cb6e438bad8;p=gcc.git invoke.texi: Add documentation for runtime behavior of -fno-range-check. 2008-06-29 Jerry DeLisle * invoke.texi: Add documentation for runtime behavior of -fno-range-check. From-SVN: r137254 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index c9d2d9a49b0..f29b380c40b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2008-06-29 Jerry DeLisle + + * invoke.texi: Add documentation for runtime behavior of + -fno-range-check. + 2008-06-28 Daniel Kraft * gfc-internals.texi (section gfc_code): Extended documentation about diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 0879f52d7df..445b4a7d1a9 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -156,8 +156,9 @@ and warnings}. @item Runtime Options @xref{Runtime Options,,Options for influencing runtime behavior}. -@gccoptlist{-fconvert=@var{conversion} -frecord-marker=@var{length} @gol --fmax-subrecord-length=@var{length} -fsign-zero} +@gccoptlist{-fconvert=@var{conversion} -fno-range-check +-frecord-marker=@var{length} @gol -fmax-subrecord-length=@var{length} +-fsign-zero} @item Code Generation Options @xref{Code Gen Options,,Options for code generation conventions}. @@ -938,6 +939,16 @@ representation for unformatted files. The @code{CONVERT} specifier and the GFORTRAN_CONVERT_UNIT environment variable override the default specified by @option{-fconvert}.} + +@item -fno-range-check +@opindex @code{-fno-range-check} +Disable range checking of input values during integer @code{READ} operations. +For example, GNU Fortran will give an error if an input value is +outside of the relevant range of [@code{-HUGE()}:@code{HUGE()}]. In other words, +with @code{INTEGER (kind=4) :: i} , attempting to read @math{-2147483648} will +give an error unless @option{-fno-range-check} is given. + + @item -frecord-marker=@var{length} @opindex @code{frecord-marker=}@var{length} Specify the length of record markers for unformatted files.