diff options
author | Tobias Burnus <burnus@net-b.de> | 2009-06-29 23:02:17 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2009-06-29 23:02:17 +0200 |
commit | 20460eb94863954cf7ebdc7bf2193038ac0b781a (patch) | |
tree | f4b9667f6f491ec9edcb2471c4bf08b3e532f635 /gcc/fortran/invoke.texi | |
parent | a61a36ab30b7711b5d5cf002d52e6e9514499739 (diff) | |
download | gcc-20460eb94863954cf7ebdc7bf2193038ac0b781a.zip gcc-20460eb94863954cf7ebdc7bf2193038ac0b781a.tar.gz gcc-20460eb94863954cf7ebdc7bf2193038ac0b781a.tar.bz2 |
re PR fortran/40580 (Add -fcheck=pointer with runtime check for using an unallocated argument)
2009-06-29 Tobias Burnus <burnus@net-b.de>
PR fortran/40580
* trans-expr.c (gfc_conv_procedure_call): Add -fcheck=pointer
* check.
* libgfortran.h: Add GFC_RTCHECK_POINTER.
* invoke.texi (-fcheck): Document new pointer option.
* options.c (gfc_handle_runtime_check_option): Handle pointer
* option.
* gfortran.texi (C Binding): Improve wording.
* iso-c-binding.def: Remove obsolete comment.
2009-06-29 Tobias Burnus <burnus@net-b.de>
PR fortran/40580
* pointer_check_1.f90: New test.
* pointer_check_2.f90: New test.
* pointer_check_3.f90: New test.
* pointer_check_4.f90: New test.
* pointer_check_5.f90: New test.
From-SVN: r149063
Diffstat (limited to 'gcc/fortran/invoke.texi')
-rw-r--r-- | gcc/fortran/invoke.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index c471521..5d0448f 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -166,7 +166,7 @@ and warnings}. @gccoptlist{-fno-automatic -ff2c -fno-underscoring @gol -fwhole-file -fsecond-underscore @gol -fbounds-check -fcheck-array-temporaries -fmax-array-constructor =@var{n} @gol --fcheck=@var{<all|array-temps|bounds|do|recursion>} +-fcheck=@var{<all|array-temps|bounds|do|pointer|recursion>} -fmax-stack-var-size=@var{n} @gol -fpack-derived -frepack-arrays -fshort-enums -fexternal-blas @gol -fblas-matmul-limit=@var{n} -frecursive -finit-local-zero @gol @@ -1203,6 +1203,7 @@ by use of the @option{-ff2c} option. @opindex @code{fcheck} @cindex array, bounds checking @cindex bounds checking +@cindex pointer checking @cindex range checking @cindex subscript checking @cindex checking subscripts @@ -1241,6 +1242,9 @@ checking substring references. Enable generation of run-time checks for invalid modification of loop iteration variables. +@item @samp{pointer} +Enable generation of run-time checks for pointers and allocatables. + @item @samp{recursion} Enable generation of run-time checks for recursively called subroutines and functions which are not marked as recursive. See also @option{-frecursive}. |